The Counter type in Prometheus, how to query today's increments?

it doesn"t seem to work like this. 1D represents the increment of the past 24 hours, not from zero today.

sum(increase(sms_count[1d]))

also, how can this query be written to display increments according to the range selected by grafana"s time range?


have you solved this problem?


delta (sms_ count [1D]) indicates the difference between the current and the previous day


has this problem been solved? my line chart in grafana cannot take this value. A normal SingleStat can do this.


Hello, have you solved your problem

Menu