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 upShow offending labels in many-to-many error #4608
Comments
matthiasr
added
the
component/promql
label
Sep 14, 2018
This comment has been minimized.
This comment has been minimized.
trajano
commented
Dec 27, 2018
|
While we're waiting for a fix. how did you debug your query to find out? |
This comment has been minimized.
This comment has been minimized.
|
I aggregated away different labels on both sides until I found which one is causing the issue, then thought about how many-to-many matches could arise based on how the metrics were generated and collected. As I wrote, there's no clever way but to think about it really hard. |
This comment has been minimized.
This comment has been minimized.
dnwe
commented
Dec 27, 2018
|
I hit the same issue. I just manually patched engine.go to print out details of the label collision and ran my queries through that to see which were the cause |
This comment has been minimized.
This comment has been minimized.
|
Could you submit that patch?
…On Thu, Dec 27, 2018, 22:32 Dominic Evans ***@***.***> wrote:
I hit the same issue. I just manually patched engine.go to print out
details of the label collision and ran my queries through that to see which
were the cause
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4608 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAICBsRRFl27omorrX545sZa46fXwSfVks5u9TyHgaJpZM4WpduA>
.
|
gouthamve
added
the
help wanted
label
Feb 1, 2019
This comment has been minimized.
This comment has been minimized.
|
I can take this issue up. |
This comment has been minimized.
This comment has been minimized.
|
@tariq1890 Please do! |
tariq1890
referenced this issue
Feb 7, 2019
Merged
show list of offending labels in the error message in many-to-many scenarios #5189
juliusv
closed this
in
#5189
Feb 9, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
matthiasr commentedSep 14, 2018
Proposal
When showing the error message
include the labels, and potentially even the whole metric, that caused it.
Use case. Why is this important?
I just spent half an hour staring at a query trying to fix this issue; sometimes a very large set of time series has duplication in only a handful of them. Knowing more about the reason for the many-to-many error would have helped a lot.
This message is generated here:
prometheus/promql/engine.go
Line 1222 in 576ee4d