Glossary · Observability

What Are Metrics (Counter, Gauge, Histogram)?

Counters, gauges and histograms are the three metric shapes, and choosing the right one determines what questions you can answer.

Metrics are numeric measurements recorded over time. The three core instrument types are the counter (a cumulative value that only increases), the gauge (a value that goes up and down), and the histogram (a distribution of values bucketed for percentile analysis).

The three instrument types

Each metric type captures a different kind of measurement, and using the wrong one loses information, for example, recording latency as a gauge throws away the distribution you need for percentiles.

TypeWhat it measuresExamples
CounterA cumulative value that only goes up (reset on restart); you take its rateRequests served, errors, bytes sent
GaugeA value that can rise and fall, sampled at a point in timeMemory in use, queue depth, temperature
HistogramA distribution of values into buckets, so you can compute percentilesRequest latency, payload size

How it fits Ops Singularity

TelemetryOps ingests OpenTelemetry metrics of all three types, and Sentinel AI uses them, rates from counters, levels from gauges, latency percentiles from histograms, as inputs to detection and resolution.

Frequently asked questions

When should I use a histogram instead of a gauge?

Use a histogram when you care about the distribution, especially latency, because it lets you compute p95 and p99. A gauge only captures a single sampled value and cannot give you percentiles.

What is a counter used for?

Counting things that accumulate, like requests or errors; you typically graph the rate of a counter rather than its raw value.

One governed intelligence layer for every operation.

Ops Singularity turns open telemetry into autonomous, governed resolution. See it on your own stack.

Request a Demo → See TelemetryOps