-
Notifications
You must be signed in to change notification settings - Fork 453
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
[query] In one-to-one with labels matcher only labels should be included #2417
Changes from 1 commit
755ab75
46c22d8
f9024c3
720900f
65936f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,11 +198,11 @@ eval instant at 50m (http_requests{group="canary"} + 1) and ignoring(group, job) | |
# http_requests{group="canary", instance="1", job="api-server"} 400 | ||
# http_requests{group="canary", instance="1", job="app-server"} 800 | ||
|
||
# FAILING issue #36. eval instant at 50m http_requests{group="canary"} / on(instance,job) http_requests{group="production"} | ||
# {instance="0", job="api-server"} 3 | ||
# {instance="0", job="app-server"} 1.4 | ||
# {instance="1", job="api-server"} 2 | ||
# {instance="1", job="app-server"} 1.3333333333333333 | ||
eval instant at 50m http_requests{group="canary"} / on(instance,job) http_requests{group="production"} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see there is one more case with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add a link to it? I can't find it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've marked one additional case with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually that issue it's not #36, but I think my fix possibly will fix it too after you will push your PR with comparator changes, as now I get "foo" metric for the test you mention. Maybe actually we should have a switch to disable random data generation? |
||
{instance="0", job="api-server"} 3 | ||
{instance="0", job="app-server"} 1.4 | ||
{instance="1", job="api-server"} 2 | ||
{instance="1", job="app-server"} 1.3333333333333333 | ||
|
||
# FAILING issue #35. eval instant at 50m http_requests{group="canary"} unless ignoring(group, instance) http_requests{instance="0"} | ||
|
||
|
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.
Would it be possible to add a test for this change in
binary_test.go
?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.
Doesn't this clear the tags on the result? I think it should be
lMeta.Tags = lMeta.Tags.TagsWithKeys(matching.Matching)
or something along those lines?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.
It does clear only extra tags but actually, when I was writing a test I found one more case when not all required tags get cleared. So I moved that code block to
intersect
method which makes more sense and I have added compatibility test too.