Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upGetFingerprintsForLabelSet() does OR, not AND on labels #29
Comments
ghost
assigned
matttproud
Jan 13, 2013
This comment has been minimized.
This comment has been minimized.
|
Try patching in https://github.com/matttproud/prometheus/pull/30 and letting me know if this does what you expect. I am not happy with how messy this is, but I want to unblock you. |
matttproud
closed this
Jan 13, 2013
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
bobmshannon
pushed a commit
to bobmshannon/prometheus
that referenced
this issue
Nov 19, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 25, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 25, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
juliusv commentedJan 13, 2013
The expression:
Yields 12 vector elements where it should only yield one:
This is an OR of the labels, not an AND (all timeseries that match either the name of the metric OR the percentile value). The bug is in GetFingerprintsForLabelSet():
This outputs this:
Note the 12 fingerprints where there should only be one!
The reason is that GetFingerprintsForLabelSet() steps through all labels and fetches the matching metrics for each label, thus resulting in an OR.