cerndb / grafana-mimir-cardinality-dashboards

Grafana Mimir dashboards used for cardinality exploration
Apache License 2.0
26 stars 5 forks source link

URL to json api datasource #1

Open jkleinlercher opened 2 months ago

jkleinlercher commented 2 months ago

although I get data when I curl my cardinality API like this

curl -X GET -H 'X-Scope-OrgID:anonymous' 'https://mimir.example.com/prometheus/api/v1/cardinality/label_names'

I get an error in grafana when I use the connection URL like in your readme

https://mimir.example.com/prometheus/api/v1/cardinality/

Error: JSON API: Cannot connect to API

Any idea? It works when I use the URL https://mimir.example.com/prometheus/api/v1/cardinality/label_names but then the dashboards don't work.

BasJ93 commented 1 month ago

I tried it as well, and get the same error.

However, Grafana complains but still saves the URL for the datasource. Thus, set it to the shortened URL and save. Then load a dashboard and see that it works.