Kubesense

Stat

The Stat visualization displays a single prominent value, ideal for KPIs, summary numbers, and at-a-glance metrics.

Single Stat

When to Use

  • Displaying a single important value (e.g., total requests, error rate, uptime)
  • Showing a key metric with trend context via a sparkline
  • Dashboard headers or summary panels

Building a Stat Panel

  1. Open the Data Explorer
  2. Select your data source (Metrics, Logs, or Traces)
  3. Configure your query (see Query Builder)
  4. Select Stat as the Panel Type in the right sidebar
  5. Click Run to render the stat

In the example above, the panel queries Logs data with count(*) aggregation and displays the total count as a single stat value with a sparkline trend behind it.

Multiple Queries

Add multiple queries to display several stat values side by side in the same panel. Each query produces its own stat card with an independent value and label.

Multi-Query Stat

In the example above, query A shows the Trace Count and query B shows the Count of Logs, displayed together with percentage change indicators.

Formulas

Use formulas to create computed stats from your queries. Click Add Formula and enter an expression combining your queries (e.g., A / B). See Time Series — Formulas for more details.

Panel Configuration

Panel Options

OptionDescription
NameDisplay name shown in the panel header
DescriptionOptional description for additional context

Value Options

OptionDescription
CalculationReducer function that computes the displayed value from the query results — Sum, Mean, Last, Max, Min, etc.

Standard Options

OptionDescription
UnitUnit formatter for the displayed value — choose from 100+ units including bytes, percentage, duration, requests/sec, and more

Stat Styles

OptionDescription
Show TrendToggle the sparkline trend graph behind the stat value
Show LabelToggle the label text above the stat value
Show Percentage ChangeDisplay the percentage change over the selected time range alongside the stat value
Percent change color modeControls how percentage change is colored — Standard (green for positive, red for negative) or Inverted

Thresholds

Add color-coded thresholds to change the stat color based on value ranges. Enable thresholds in the right sidebar, then click Add Threshold and set the value.