20 Oct 2021 11:35 AM
Hi,
We have some Browser Clickpath Synthetic monitors we'd like to export metrics from. I can export the monitor definitions but I cannot seem to find API calls for retrieving metrics for this (only 1 for getting HTTP Monitors: https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic-v2/synthetic-monitor-... )
Is this simply not available yet, or am I not looking good enough ?
Solved! Go to Solution.
20 Oct 2021 12:13 PM
While I have not done this before, they should be available through the Metrics API. You just have to use the IDs for your measurements...
20 Oct 2021 12:45 PM
Say my synthetic test ID is SYNTHETIC_TEST-7010ACE1660CAAFE, how would I go from there to get the measurements IDs ?
I've tried using the metrics?text search to see if I can find anything, but no hits there.
21 Oct 2021 06:46 AM
Hi @simonv
There a some metrics for synthetic browser that you can utilize with the get metric API.
In the metric dashboard you can search for synthetic browser and get their names.
Now in the get metric query API place the metric that meets your needs and add the right filter and you are all set.
For example here is a fetch data of the availability of a browser synthetic check
The metricSelector
and the filter of the type and entity
TIP: For simplify the creation of entity selector check the code section under the metric chart...
HTH
Yos
26 Oct 2021 04:30 PM
Hi @Yosi_Neuman
Sorry, did not notice your post.
Thanks, this helped. Able to find some of the metrics I was looking for now like availability (builtin:synthetic.browser.availability.location.total).
Also the code section is good to know.