Back to features

Feature

Rolling out

Custom metrics & dashboards

A metric monitor watches one number against a threshold. Sometimes you want more: many numbers, tagged by region or endpoint or customer, sliced and charted however you like. Push labeled metrics into Xpiry, query them by tag and time, and lay the answers out on dashboards you build.

Push any number, with labels

Send a batch of samples to a monitor's ingest URL. Each carries a series name, a value, and an optional flat map of labels. Those labels are the dimensions you slice on later.

# POST a JSON batch of labeled samples

curl -X POST -H "Authorization: Bearer $XPIRY_API_KEY" \

  -H "Content-Type: application/json" \

  -d '{"points":[

    {"name":"latency_ms","value":42.5,"labels":{"region":"us-east"}},

    {"name":"latency_ms","value":51.0,"labels":{"region":"eu-west"}},

    {"name":"queue_depth","value":12}

  ]}' \

  https://xpiry.dev/ping/<token>/metrics

Every metric monitor you already run also records its threshold value as a value series automatically, so there is history to chart from day one.

Query it your way

A constrained query builder, not raw SQL, so it stays fast and safe across your account. Pick the monitors, the series, and how to summarize each time bucket:

  • Aggregate by average, min, max, sum, count, last, or percentiles (p50, p90, p95, p99)
  • Group by a label to split one query into a line per region, endpoint, or customer
  • Filter to just the label values you care about
  • Window over the last 24 hours, 7, 30, or 90 days, bucketed to match

Queries are always scoped to the monitors your account owns, so there is no way to read another tenant's data.

Build dashboards

Save any query as a panel and arrange panels on a dashboard with drag and drop. Mix and match visualizations to the shape of the data:

Line & area for trends over time, one series per label value.
Bar for bucketed counts and comparisons.
Gauge for a single value against its scale.
Stat for one big number, like the current p95.

Availability

Pushing labeled metrics builds on service monitors, which are on every plan (per-domain limits apply). The dashboard builder is a Pro and Agency feature, rolling out now. Metrics are retained for 180 days.

Start monitoring in minutes

Free for one domain. No credit card required.

Get started free

See the full feature list or pricing.