Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL to json api datasource #1

Open
jkleinlercher opened this issue Aug 1, 2024 · 1 comment
Open

URL to json api datasource #1

jkleinlercher opened this issue Aug 1, 2024 · 1 comment

Comments

@jkleinlercher
Copy link

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
Copy link

BasJ93 commented Aug 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants