Skip to main content

Metric

Type: metric • Category: visualization

Description

Store latest metric value

Parameters

NameTypeDescriptionRequiredDefault
widgetIdhiddenno
metricExprstringExpr -> number or {value,label}no
keepHistorybooleannofalse
historyLimitnumberno100

Help

Metric Worker - Key Performance IndicatorsDisplay real-time metric values with optional historical trending and customizable formatting.

Data Source:

  • metricExpr: Expression returning number or {value: number, label: string}
  • keepHistory: Enable historical data tracking (default: false)
  • historyLimit: Maximum historical points to retain (default: 100)

Features:

  • Real-time: Always shows latest metric value
  • Historical: Optional trend line with previous values
  • Labels: Custom metric names and descriptions
  • Formatting: Automatic number formatting
  • Trending: Visual indication of value changes

Data Format:

  • Simple: metricExpr="42.5" or metricExpr="data.temperature"
  • With label: metricExpr="{value: data.cpu_usage, label: 'CPU %'}"

Examples:

  • Temperature: metricExpr="{value: data.temp, label: 'Room Temperature °C'}"
  • Counter: metricExpr="data.request_count"
  • Percentage: metricExpr="{value: data.completion_rate * 100, label: 'Progress %'}"

Use Cases:

  • System monitoring
  • KPI dashboards
  • Real-time counters
  • Performance metrics