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.
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.
Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing, profiling, logging, metrics, crons, or AI monitoring for PHP applications. Supports plain PHP, Laravel, and Symfony.
Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.
Define and implement Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with error budgets and alerting. Use when establishing reliability targets, implementing SRE practices, or measuring service performance.