Skip to main content
The Gauge panel displays values using radial (circular or arc) or linear gauges with extensive customization options for appearance and behavior.

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 in public/app/plugins/panel/gauge/v2/module.tsx:14:

Options Interface

From public/app/plugins/panel/gauge/panelcfg.gen.ts:27:

Default Options

From public/app/plugins/panel/gauge/panelcfg.gen.ts:45:

Gauge Configuration

Shape

Choose gauge style (from public/app/plugins/panel/gauge/v2/module.tsx:21):

Orientation

Control layout direction:

Sizing

From public/app/plugins/panel/gauge/v2/module.tsx:37:
When using manual sizing:
  • Vertical orientation: Set minVizWidth (0-600px)
  • Horizontal orientation: Set minVizHeight (0-600px)

Bar Width Factor

Control the thickness of the gauge bar (from public/app/plugins/panel/gauge/v2/module.tsx:79):

Segments

Divide the gauge into discrete segments (from public/app/plugins/panel/gauge/v2/module.tsx:91):
Segment spacing is only visible when segmentCount > 1.

Bar Shape

Control bar appearance (from public/app/plugins/panel/gauge/v2/module.tsx:116):
Bar shape only applies when segmentCount === 1.

Endpoint Marker

Add a marker at the gauge endpoint (from public/app/plugins/panel/gauge/v2/module.tsx:130):
Endpoint marker only appears when barShape === 'rounded' and segmentCount === 1.

Visual Effects

From public/app/plugins/panel/gauge/panelcfg.gen.ts:15:
Configured via custom editor at public/app/plugins/panel/gauge/v2/module.tsx:195.

Display Options

Text Mode

Control text display (from public/app/plugins/panel/gauge/v2/module.tsx:146):

Neutral Value

Set a neutral point for the gauge (from public/app/plugins/panel/gauge/v2/module.tsx:162):

Sparkline

Show a mini time series chart (from public/app/plugins/panel/gauge/v2/module.tsx:173):

Threshold Display

From public/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:
Common reducers:
  • lastNotNull - Last non-null value (most common)
  • last - Last value
  • mean - Average
  • min - Minimum
  • max - Maximum
  • sum - Sum

Advanced Features

Thresholds and Colors

Gauges use thresholds to determine colors. Define multiple threshold steps:
Or use percentage mode:

Field Overrides

Apply different settings to specific gauges:

Implementation Details

The Gauge panel uses the new v2 implementation when the newGauge feature toggle is enabled (from public/app/plugins/panel/gauge/module.tsx:6):
Key files:
  • public/app/plugins/panel/gauge/v2/module.tsx - Plugin definition (v2)
  • public/app/plugins/panel/gauge/v2/GaugePanel.tsx - Component implementation
  • public/app/plugins/panel/gauge/v2/EffectsEditor.tsx - Visual effects editor
  • public/app/plugins/panel/gauge/panelcfg.gen.ts - Generated types
The Gauge panel extends SingleStatBaseOptions, sharing common functionality with Stat and Bar Gauge panels.

Stat Panel

Display single values with sparklines

Graph Panel

Visualize time series data