08 Dec 2023 02:12 PM - last edited on 12 Dec 2023 08:26 AM by MaciejNeumann
Hello
I have created some Metric Events and i was wondering if there is a way to only open problem or alert during some specific days ?
I tried to use maintenance Window but i couldn't find a way.
i don't want to apply the maintenance window to the whole entity but only on that specific event.
Example : I have a custom event that is based on a metric selector and should alert if error count reach 1% of the requests on a service X.
I want this alert to only be raised during the day but disabled at night and at the same time keep the other alerts during the night on that specific service.
08 Dec 2023 02:26 PM
Hi @SOBE
Dynatrace doesn't natively support the kind of time-based alert filtering you're describing directly in the event configuration. Please consider using the Dynatrace API to programmatically enable/disable alerts or maintenance windows based on time or other conditions. This way, you can automate the process of switching between different alerting profiles or toggling specific alerts on and off.
I don't know if this will help, but for now it comes to mind.
Radek
08 Dec 2023 03:05 PM
@radek_jasinski i was hoping it won't come to that, it's gonna be really complicated for me to do all that because i'll have to collaborate with other teams that handle the administration of the Dynatrace server on which we can run the enable/disable script.
plus i'm not a programmer so i'll have to use chat gpt or something.
anyway, thanks for the answer
08 Dec 2023 03:15 PM
Maybe someone else will come up with another idea.
I'll think about it some more tonight and if anything I'll let you know.
08 Dec 2023 04:27 PM
Hi,
A possible workarround would be:
I do not see a shorter way to do it. Benefic is avoiding Dynatrace API + programmings skills.
Best regards
11 Dec 2023 12:56 PM
@AntonPineiro does the Management zone need to include the entities also ?
because i have created a MZ with only the Metric events but it wasn't detecting anything
so i had to delete it but then again if a created the MZ with all the concerned entities + the Metric events and apply a Maintenance Window to it, it will silence all the entities as well
11 Dec 2023 03:17 PM
Hi,
I was thinking without entities.
Best regards