cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Frequency on Synthetic Monitors

salvias
Newcomer

Can I specify a specific time and day(s) for a synthetic script to run, user interface only offers hour/minutes intervals 

5 REPLIES 5

Fin_Ubels
Dynatrace Advisor
Dynatrace Advisor

Hey salvias,
I don't believe this is a feature, as a workaround though you could setup something to interact with the API to enable and disable your synthetic at certain dates/times.

Details on the API for editing a synthetic can be found here:
https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic/synthetic-monitors/pu...

 

techean
Dynatrace Pro
Dynatrace Pro

Hi Salvia,

 

We have a API that exposes the frequency of monitors can check on the same. However if my understanding is correct you can even try the built-in outage handling & alerting? (Monitor settings -> Outage handling) which will help to implement own alert handling. Currently this may not be supported if you want to extract a metric to pin it to dashboard.

KG

HannahM
Dynatrace Champion
Dynatrace Champion

For scheduling monitors at specific times of day or days of the week, we recommend the use of Maintenance Windows. One of the options when creating a Maintenance Window is to disable Synthetic Monitors .  So you could do this for groups of monitors or single ones to get them only running at specified times. 

Fin_Ubels
Dynatrace Advisor
Dynatrace Advisor

Hey @salvias,

 

Just letting you know that there is a new API allowing for manual triggering of a batch of synthetics so you can create a tool that targets that API. Alternatively you can also manually trigger a synthetic at any time within the UI but still cannot schedule it for any time within the UI.

 

Docs for triggering synthetics with the API can be found below:

https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic-v2/synthetic-monitor-...

 

y_buccellato
Advisor

Have you already explored the possibility to implement that logic via Maintenance Windows?

y_buccellato_0-1657006495484.png