-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
store: add handling code for older Prometheus versions #4628
store: add handling code for older Prometheus versions #4628
Conversation
Handle older Prometheus versions that do not support `match[]`. Add tests that cover new code. The new code is largely modeled after the LabelValues() code. Signed-off-by: Giedrius Statkevičius <[email protected]>
Code looks good but we still need to fix the test.
We need to pass a version function to |
Signed-off-by: Giedrius Statkevičius <[email protected]>
Thank you! I have just deleted that test since it is now covered by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for quick fix! |
* store: add handling code for older Prometheus versions Handle older Prometheus versions that do not support `match[]`. Add tests that cover new code. The new code is largely modeled after the LabelValues() code. Signed-off-by: Giedrius Statkevičius <[email protected]> * store: delete test that is covered by another test Signed-off-by: Giedrius Statkevičius <[email protected]>
Handle older Prometheus versions that do not support
match[]
. Addtests that cover new code. The new code is largely modeled after the
LabelValues() code.
It fixes #4586 (comment) and unblocks the release.
Signed-off-by: Giedrius Statkevičius [email protected]