Overview
The Gauge panel is ideal for:- Visualizing values within a min/max range
- Displaying KPIs with threshold markers
- Showing progress or capacity metrics
- Creating dashboard health indicators
Grafana has two gauge implementations. The new gauge (v2) is enabled via the
newGauge feature toggle. This documentation covers the v2 implementation.Panel Options
The Gauge panel is defined inpublic/app/plugins/panel/gauge/v2/module.tsx:14:
Options Interface
Frompublic/app/plugins/panel/gauge/panelcfg.gen.ts:27:
Default Options
Frompublic/app/plugins/panel/gauge/panelcfg.gen.ts:45:
Gauge Configuration
Shape
Choose gauge style (frompublic/app/plugins/panel/gauge/v2/module.tsx:21):
Orientation
Control layout direction:Sizing
Frompublic/app/plugins/panel/gauge/v2/module.tsx:37:
- Vertical orientation: Set
minVizWidth(0-600px) - Horizontal orientation: Set
minVizHeight(0-600px)
Bar Width Factor
Control the thickness of the gauge bar (frompublic/app/plugins/panel/gauge/v2/module.tsx:79):
Segments
Divide the gauge into discrete segments (frompublic/app/plugins/panel/gauge/v2/module.tsx:91):
Segment spacing is only visible when
segmentCount > 1.Bar Shape
Control bar appearance (frompublic/app/plugins/panel/gauge/v2/module.tsx:116):
Bar shape only applies when
segmentCount === 1.Endpoint Marker
Add a marker at the gauge endpoint (frompublic/app/plugins/panel/gauge/v2/module.tsx:130):
Visual Effects
Frompublic/app/plugins/panel/gauge/panelcfg.gen.ts:15:
public/app/plugins/panel/gauge/v2/module.tsx:195.
Display Options
Text Mode
Control text display (frompublic/app/plugins/panel/gauge/v2/module.tsx:146):
Neutral Value
Set a neutral point for the gauge (frompublic/app/plugins/panel/gauge/v2/module.tsx:162):
Sparkline
Show a mini time series chart (frompublic/app/plugins/panel/gauge/v2/module.tsx:173):
Threshold Display
Frompublic/app/plugins/panel/gauge/v2/module.tsx:180:
Text Size
Configure text sizing:Panel JSON Examples
Basic Gauge
Segmented Gauge
Gauge with Neutral Value
Multiple Gauges with Manual Sizing
Data Reduce Options
Like the Stat panel, the Gauge panel uses reduce options to convert multiple values to a single displayable value:lastNotNull- Last non-null value (most common)last- Last valuemean- Averagemin- Minimummax- Maximumsum- Sum
Advanced Features
Thresholds and Colors
Gauges use thresholds to determine colors. Define multiple threshold steps:Field Overrides
Apply different settings to specific gauges:Implementation Details
The Gauge panel uses the new v2 implementation when thenewGauge feature toggle is enabled (from public/app/plugins/panel/gauge/module.tsx:6):
public/app/plugins/panel/gauge/v2/module.tsx- Plugin definition (v2)public/app/plugins/panel/gauge/v2/GaugePanel.tsx- Component implementationpublic/app/plugins/panel/gauge/v2/EffectsEditor.tsx- Visual effects editorpublic/app/plugins/panel/gauge/panelcfg.gen.ts- Generated types
The Gauge panel extends
SingleStatBaseOptions, sharing common functionality with Stat and Bar Gauge panels.Related Resources
Stat Panel
Display single values with sparklines
Graph Panel
Visualize time series data