Why should you never use a gauge to count requests?
BeginnerConceptObservability Fundamentals & Signals
Answer
A gauge sampled every 15s loses everything that happened between scrapes, and if it is reset per interval you lose data when a scrape is missed. A counter is cumulative, so rate() over any window gives the correct average even if scrapes are missed, and counter resets on restart are detected and handled automatically by rate()/increase().
Rule: if you would ask "how many per second?", it is a counter.
More on Observability Fundamentals & Signals
What is the difference between monitoring and observability?BeginnerWhat are the "three pillars" of observability, and what is the fourth signal people now add?BeginnerWhen would you reach for metrics, logs, traces or profiles during an incident?BeginnerWhat are the four Prometheus metric types?BeginnerHistogram vs summary: what is the real difference, and which do you choose?IntermediateWhat are native (sparse) histograms in Prometheus?Advanced