Skip to main content

Custom Metrics

Track anything the built‑in metrics don't — a queue depth, a temperature, a business number — by having the agent collect it on a schedule.

Define a metric

  1. Go to Monitoring → Custom MetricsNew Metric.
  2. Fill in:
    • Name — internal identifier.
    • Display name — what shows in charts.
    • Description — optional context.
    • Unit — e.g. %, ms, GB, count.
    • Source — how it's collected, e.g. Agent Script (the agent runs your command and reports the number it prints).
    • Alert threshold — optional; flag the metric when it crosses this value.
  3. Create. DashX starts collecting on schedule and draws a sparkline of the trend.

Put it on a dashboard

Add a Metric Chart or Metric Value widget on a Dashboard and point it at your metric to watch it alongside everything else.

tip

Have the agent script print just the number (and nothing else) — DashX reads that value as the data point.