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

Change /api/v1/label endpoint to /api/v1/labels to match with prometheus API #1367

Closed
Mortega5 opened this issue Dec 5, 2019 · 0 comments · Fixed by #1370
Closed

Change /api/v1/label endpoint to /api/v1/labels to match with prometheus API #1367

Mortega5 opened this issue Dec 5, 2019 · 0 comments · Fixed by #1370

Comments

@Mortega5
Copy link

Mortega5 commented Dec 5, 2019

Describe the bug
Prometheus API defines the endpoind /api/v1/labels to get all labels but Loki endpoint is /api/v1/label (without s). For this reason, using label_names() in a query variable fails.

To Reproduce

  1. Deploy Loki and Grafana
  2. Add Loki as prometheus datasource in grafana (using /loki path)
  3. Try to add a new variable using label_names() query

Environment:

  • Infrastructure: Kubernetes 1.15.5
  • Deployment tool: helm 2.14.3
  • Chart version: 0.20.0 (loki v1.1.0)

Screenshots, Promtail config, or terminal output
image

labels

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

Successfully merging a pull request may close this issue.

1 participant