DELAPARRA
Index
Color
NL
Category: Observability

gauge

Explained by Updated

What is gauge?

gauge: A metric that can go up and down — a snapshot of a value right now (temperature, queue length, memory in use). A gauge is a metric that can go up and down. It shows a value at this moment, such as memory in use, the number of jobs waiting in a queue, or active database connections.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about gauge

How is gauge used in practice?

Unlike a counter, the raw value of a gauge is meaningful. If queue depth is 47, there are 47 jobs waiting right now. Graphs show you trends, and alerts can fire when a gauge stays above a threshold.

What should you keep in mind with gauge?

Be careful with what a single sample tells you. A gauge scraped every 30 seconds can miss short spikes in between. For values that change quickly, such as response times, histograms give a better picture. Queue depth and the age of the oldest job are two gauges almost every application with background jobs should monitor.

What does an example of gauge look like?

queue_depth 47

At a glance

CategoryObservability
Explained by
Updated

More Observability terms

All terms starting with G

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.