Hi all
Is there any way to get the list of all public synthetic monitoring probes with detailed info such as TenantID, name , latitude and so on from the API
I created an API token with ‘admin’ rights and tried a curl like this
C:\Users\carlos>curl -k -X GET “https://migrafana.grafana.net/api/v1/” -H “Authorization: Bearer blablablabla==” -H “Content-Type: application/json”
to get
{“message”:“Unauthorized”,“traceID”:“57217c2f79f57c9e00729096fd6a7f38”}
Any idea?
thank you
1 Like
No, there isn’t a direct API that does that, but you can get the information anyway.
If you use as an example Grafana Play’s Synthetics Page, and take a look here you’ll see that the Synthetics page is itself just another dashboard of sorts, and that with “Explore” you can see how to get this data.
If you go to the “Explore” view, you’ll see that getting all of the details of all of the synthetics checks is actually a question of running PromQL on your metrics store. Explore will even show you which queries to use.
In other words, by querying your metrics store with the right query, you can get the data
2 Likes
Thank you very much David.
I got finally by using this
curl -H “Content-type: application/json; charset=utf-8” -H “Authorization: Bearer WHATEVER” https://my-synthetic-monitoring-api-url/api/v1/check/list | jq
Thx also to all who read this and tried to help.
Have a good day 
1 Like