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

CI/CD - Detect if Syntetic Monitor succeeded or failed.

leonard_lunardi
Organizer

Hi Folks.

 

I'm looking for a way to include in my validation mat a step with the following steps:

1) Enable Synthetic Monitor.
2) Run Synthetic Monitor.
3) Validate if the Synthetic Monitor succeeded or failed
4) Follow or fail the process according to the above result.

5) Disable Synthetic Monitor.

 

I haven't found a simple way through the API to determine if Synthetic Monitor ran successfully or failed.

Does anyone have a tip on how I could get this information?

2 REPLIES 2

dannemca
DynaMight Pro
DynaMight Pro

Hi @leonard_lunardi , please do check the suggestion from this other post. It may help you on how to properly say if a Synthetic monitor is healthy or not.

Remember that you can use the :lastreal transformation to get the latest result available, and let your CICD accurate.

Hint: these are the metrics that you will probably use: builtin:synthetic.browser.availability.location.total or builtin:synthetic.http.availability.location.total

Site Reliability Engineer @ Kyndryl

HannahM
Dynatrace Champion
Dynatrace Champion

Hi Leonard, 

we actually have a preview running currently for running Synthetic monitors using the API and retrieving their results the same way. This has been designed for use in CI/CD pipelines. Is this something you might be interested in taking part in?

Thanks, Hannah