KCNA · Question #50
Which Prometheus metric represents a single value that can go up and down?
The correct answer is B. Gauge. A Prometheus Gauge is a metric type that represents a single numerical value that can arbitrarily go up and down, making it suitable for current measurements.
Question
Which Prometheus metric represents a single value that can go up and down?
Options
- ACounter
- BGauge
- CSummary
- DHistogram
How the community answered
(50 responses)- A2% (1)
- B92% (46)
- C2% (1)
- D4% (2)
Why each option
A Prometheus Gauge is a metric type that represents a single numerical value that can arbitrarily go up and down, making it suitable for current measurements.
A Counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero upon restart, unlike a Gauge.
A Gauge is a metric that represents a single numerical value that can go up and down arbitrarily, making it suitable for continuously changing values such as current memory usage, temperature, or the number of concurrent requests.
A Summary samples observations (usually request durations or response sizes) and provides quantiles over a sliding time window, rather than a single fluctuating value.
A Histogram samples observations and counts them in configurable buckets, also providing a sum of all observed values and an event count, which is different from a single, arbitrarily changing value.
Concept tested: Prometheus metric types (Gauge)
Source: https://prometheus.io/docs/concepts/metric_types/#gauge
Topics
Community Discussion
No community discussion yet for this question.