Slide 13
Slide 13 text
© 2020 Cloud Native Computing Foundation
13
Counter : the only way is up
Use counters for counting events,
jobs, money etc. where a
cumulative value is useful
Example
# Total number of completed cleanup jobs by
datacenter (will be affected by restarts)
sum(batch_jobs_completed_total{job_type="hou
rly-cleanup"}) by (datacenter)
# Number of completed cleanup jobs per
second, by datacenter (not affected by
restarts)
sum(rate(batch_jobs_completed_total{job_type
="hourly-cleanup"}[5m])) by (datacenter)