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

Using Victoria Metrics with Grafana Label Legend does not work with Prometheus Labels #18

Closed
BenB196 opened this issue Apr 2, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@BenB196
Copy link

BenB196 commented Apr 2, 2019

I am testing out Victoria Metrics as a long term storage solution for Prometheus, however I have run into a weird bug, with Grafana Legends, where Prometheus labels are not working properly.

The below picture is a graph which I made, and each line should be a different interface. I use the Grafana Legend to be filled out with the ifName label. However, if you look at the graph you can see that the ifName is not set correctly.

image

I know that everything works correctly on the query and Grafana end, because if I switch the data source to use Prometheus directly, I get the correct result.

image

Versions of Software:

Grafana: 6.0.2 - Docker Container
Prometheus: 2.8.1 - Docker Container
Victoria Metrics: 1.12.3 Single-node - Docker Container

@BenB196 BenB196 changed the title Using Victoria Metrics with Grafana Label Legend does not work with ifName Using Victoria Metrics with Grafana Label Legend does not work with Prometheus Labels Apr 2, 2019
@valyala valyala added the bug Something isn't working label Apr 2, 2019
@valyala
Copy link
Collaborator

valyala commented Apr 2, 2019

@BenB196 , thanks for the bug report. Could you remove {{ifName}} from the Legend field in Grafana for both VictoriaMetrics and Prometheus datasources and attach the resulting screenshots? In this case Grafana should display all the labels for the returned time series. This should help understanding the difference in these labels between Prometheus and VictoriaMetrics.

@BenB196
Copy link
Author

BenB196 commented Apr 2, 2019

@valyala Please see the screenshots below:

First screenshot is of VictoriaMetrics

image

Second screenshot is of Prometheus

image

@valyala
Copy link
Collaborator

valyala commented Apr 2, 2019

Confirmed the bug. Will be fixed in the next release.

@valyala
Copy link
Collaborator

valyala commented Apr 2, 2019

@BenB196 , could you confirm the bug has been fixed in v1.12.4?

@BenB196
Copy link
Author

BenB196 commented Apr 3, 2019

@valyala I have tested v1.12.4 and this issue is now fixed. Thank you for assisting with this problem.

@valyala
Copy link
Collaborator

valyala commented Apr 3, 2019

@BenB196 , thank you for reporting the bug and verifying the bugfix.

@valyala valyala closed this as completed Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants