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 upquery returning empty metric if functions are used #1986
Comments
grobie
added
the
kind/question
label
Sep 13, 2016
This comment has been minimized.
This comment has been minimized.
|
I assume you mean in general aggregators and not functions here: https://prometheus.io/docs/querying/operators/#aggregation-operators. Aggregation operators by design combine multiple time series and produce new ones. If you don't specify a Example: |
This comment has been minimized.
This comment has been minimized.
|
@grobie thanks, it starts working now; however, the name metric is still missing, is there any way to keep it? I don't need to operate on multi-series. |
This comment has been minimized.
This comment has been minimized.
|
The name is only kept if it's still the same metric, for example |
This comment has been minimized.
This comment has been minimized.
|
got you. Thank you! |
zxwing
closed this
Sep 13, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
zxwing commentedSep 13, 2016
•
edited
I just notice if I use functions in an expression the response contains an empty metric, all labels are just lost. Is it by design?
My application relies on labels a lot, missing labels breaks the business logic.
Specific to my problem the function I use is avg()