Nick Ginanto
Nick Ginanto

Reputation: 32170

rate per series in Prometheus

I use

{__name__=~"outgoing_requests_.*_timer_count"}

which results in several series like

outgoing_requests_host1_timer_count
outgoing_requests_host2_timer_count
outgoing_requests_host3_timer_count

for each of those, I'd like to use rate() and display them on the same graph. But use rate seems to aggregate all of them into on big rate

How do I rate on each series

Upvotes: 2

Views: 406

Answers (1)

brian-brazil
brian-brazil

Reputation: 34152

The issue here is that you don't know your metric names in advance due to having the instance in the the metric name rather than in a label. You can extract these via metric relabelling: https://www.robustperception.io/extracting-labels-from-legacy-metric-names/

Upvotes: 0

Related Questions