Prometheus uses Gauge as a metric type to represent a single numerical value that can fluctuate.Gauge is used to track current values that can go up or down such as memory, CPU usage, and queue size.In Java with Prometheus client library, Gauges are defined and updated based on logic like setting, increasing, or decreasing values.An example Java application with Gauge metric for active users count is provided, demonstrating how to use Gauges to monitor and expose metrics.