Gauge metric
A gauge represents a value that can increase or decrease over time. It measures current state, such as open WebSocket connections or Kafka consumer lag, and supports operations such as Inc(), Dec() and Set().
Minimal example
consumerLag.Set(float64(lag))Learn this concept
Lesson 6.3 · Prometheus metric registrationUsed in exercises
Exercise 6.4 · API and worker metrics Exercise 6.12 · Find and fix the first bottleneckPrerequisite conceptsPrometheus metrics