gray hair newbie
gray hair newbie

Reputation: 35

Which prometheus query function to monitor a rapid change of a counter?

I have a prometheus counter that keeps track of the amount of documents processed in a scheduled job. I'm interested on plotting that counter on grafana.

Ideally I would have something like this, that shows the counter when the job was executed, but so far I was not able to. enter image description here

Some solutions I have tested:

Upvotes: 0

Views: 825

Answers (1)

Jan Garaj
Jan Garaj

Reputation: 28626

Use rate/irate function - doc: https://prometheus.io/docs/prometheus/latest/querying/functions/#irate

Then you can also use sum for aggregating over time (if don't want per second rate).

Upvotes: 1

Related Questions