Skip to content

Stat

Stat panel - single value display with optional sparkline.

Use for displaying key metrics at a glance.

<Stat title="CPU %" unit="percent" thresholds={{ 70: 'yellow', 90: 'red' }}>
100 - avg(rate(cpu_idle[$__rate_interval])) * 100
</Stat>
// With percent change indicator
<Stat title="Orders" showPercentChange percentChangeColorMode="inverted">
sum(orders_total)
</Stat>
PropTypeDefaultDescription
unitUnit-Display unit
decimalsnumber-Decimal places
thresholdsThresholdSpec-Threshold configuration
baseColor'green' | 'transparent' | 'text' | stringgreenBase threshold color
colorMode'value' | 'background' | 'background_solid' | 'none'-Color mode for stat value
graphMode'area' | 'line' | 'none'-Show sparkline graph
textMode'value' | 'name' | 'value_and_name' | 'none' | 'auto'-Text display mode
noValuestring-Value to show when no data
overridesOverrideConfig[]-Field overrides for series-specific styling
transformationsTransformation[]-Data transformations
justifyModeBigValueJustifyMode-Text alignment within the panel
showPercentChangeboolean-Show percent change from previous value
percentChangeColorModePercentChangeColorMode-Color mode for percent change indicator
wideLayoutboolean-Use wide layout (values side by side)
orientationVizOrientation-Visualization orientation
reduceOptionsReduceDataOptions-Data reduction options (advanced)

Inherits from BasePanelProps