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 upirate() cuts out metric name #1635
Comments
This comment has been minimized.
This comment has been minimized.
|
@cron2: FYI |
brian-brazil
added
the
kind/support
label
May 17, 2016
This comment has been minimized.
This comment has been minimized.
|
This behaviour is correct, as the output of In this case what you need to do is explicitly select the metric names you want. Using selectors without a name should only be used for debugging and development. |
This comment has been minimized.
This comment has been minimized.
|
Even if it's only for debugging and development, an option to pass |
This comment has been minimized.
This comment has been minimized.
|
The easy way out seems to be to add |
This comment has been minimized.
This comment has been minimized.
|
Adding Using Work-around for the given case: You could create a recording rule to create a new time series where the former metric name (or parts thereof) are now in a label, and then perform your original operation on that new time series. |
This comment has been minimized.
This comment has been minimized.
|
@beorn7 Agreed, that would work. It seems quite cumbersome to do that to drill down into "that's funny, let's look at all metrics related to this", though. To phrase it differently: Is it certain that no better workaround exists/will be implemented? |
This comment has been minimized.
This comment has been minimized.
|
You can use |
This comment has been minimized.
This comment has been minimized.
|
I could imagine we colud make it work on range expressions, too, which would solve the problem in this particular case. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil While this is usually a valid assumption, diving into the data to see what's there is open-ended by its very nature. And the amount of data prometheus can ingest means that people can't be expected to know everything every other team threw in there. @beorn7 That would be appreciated. Would this realistically happen in near time or would that be longer term? |
This comment has been minimized.
This comment has been minimized.
|
I don't think we'd be changing |
fabxc
added
kind/question
and removed
kind/support
labels
May 24, 2016
brian-brazil
closed this
Jul 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. |
RichiH commentedMay 17, 2016
Running the query below, the name of the metric is dropped from the result set:
So even while I have plenty of results:

They are all accumulated into one graph:
Which is not what I want here.
Playing with
__name__does not help.As an aside, selecting on
__name__should arguably put that into my result's label set.