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 upPromQL: Allow label append to groups of metrics #4949
Comments
This comment has been minimized.
This comment has been minimized.
|
Good idea |
This comment has been minimized.
This comment has been minimized.
|
I'm not sure about this. Given how the rest of the language works, I'd expect this to evaluate all of |
brian-brazil
added
priority/Pmaybe
component/promql
labels
Dec 4, 2018
This comment has been minimized.
This comment has been minimized.
|
Yes, I agree, it might over-complicate parsing. I just wanted to post the idea, as it seemed interesting and worth having a discussion about. |
This comment has been minimized.
This comment has been minimized.
ecraven
commented
Dec 5, 2018
|
The reason I tried this was a form like |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SuperQ commentedDec 4, 2018
Proposal
From an IRC conversation with @ecraven, we had an idea to simplify some expressions by allowing labels to be applied to groups of metrics surrounded by
().For example:
Becomes:
The effect for other labels applied to
fooandbarwould be to append the list of label filters to any interior ones.For example:
Would translate to: