liveBook · Manning

Gauge

As explained in Machine Learning Platform Engineering

A gauge is a metric whose value can increase or decrease to represent a current level or quantity.

A gauge is a Prometheus metric whose value can rise or fall, making it suitable for tracking a current level such as application memory consumption. section 3.5

In a monitored application, gauges are exposed through a /metrics endpoint, scraped by Prometheus, and visualized in Grafana alongside counters and histograms. section 3.5

Operational monitoring pipeline

Expose application metrics, configure Kubernetes scraping annotations, verify the target in Prometheus, and query the resulting values before building Grafana dashboards or alerts. section 3.5

How Machine Learning Platform Engineering covers it

How deep it goes
Defines gauges by behavior and operational role, but stops short of showing gauge-specific client-library code.
Examples
Demonstrates gauges through application memory consumption and an exposed metrics endpoint scraped into a Prometheus-Grafana pipeline.
What you can do after
Operate/configure monitoring that exposes changing application values for Prometheus queries, Grafana visualization, and alert routing.
How it connects
Connects gauges with Prometheus, Grafana, Alertmanager, counters, histograms, metrics endpoints, and Kubernetes service discovery.

Also explained in

Compare how 2 books explain gauge →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning Platform Engineering. The section links point to the parts of the book it draws on.