Add test case for vector matches on the promql compliance#92
Open
alanprot wants to merge 1 commit intoprometheus:mainfrom
Open
Add test case for vector matches on the promql compliance#92alanprot wants to merge 1 commit intoprometheus:mainfrom
alanprot wants to merge 1 commit intoprometheus:mainfrom
Conversation
Signed-off-by: Alan Protasio <approtas@amazon.com>
juliusv
reviewed
Oct 20, 2022
| - query: 'demo_memory_usage_bytes{instance!~".*:10000"}' | ||
| - query: 'demo_memory_usage_bytes{type="free", instance!="demo.promlabs.com:10000"}' | ||
| - query: '{type="free", instance!="demo.promlabs.com:10000"}' | ||
| - query: 'promhttp_metric_handler_requests_in_flight and ignoring(code) promhttp_metric_handler_requests_total' |
Member
There was a problem hiding this comment.
Thanks! A couple of points:
- This should go somewhere in the binary operator test queries section:
compliance/promql/promql-test-queries.yml
Lines 99 to 134 in d128251
- That section is currently woefully insufficient. It hasn't been testing
ignoringat all (onlyon), so maybe adding similar queries withignoringthere as the currently existingonones could already uncover this issue as well. - Currently the testing setup only scrapes data from the demo service (https://github.com/juliusv/prometheus_demo_service), and new queries should stick to that as well. You can play with all the
demo_metrics here: https://demo.promlabs.com/graph.
Author
Member
There was a problem hiding this comment.
Ah right, it does get emitted as part of the standard client library metrics from the demo job, but I'd prefer to stick to the metrics that are explicitly created by the demo service itself if we can. So far all other examples only query those demo_ metrics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adding test case to cover cases like thanos-io/thanos#5799