Skip to content
Last9
Book demo

Metrics Explorer

Use Last9's native metrics UI to build PromQL queries, visualize results, and promote them to a dashboard or alert without rebuilding the query elsewhere.

Metrics Explorer is Last9’s native UI for querying metrics. Build queries visually with the Builder mode, drop into a PromQL editor for advanced cases, and promote any query you have running into a dashboard panel or an alert without rewriting it.

Open it at app.last9.io/metrics. With no filters applied, Metrics Explorer surfaces a discovery grid of recent metrics in your cluster so you can pick one to drill into.

Metrics Explorer default view with the discovery grid

Query Modes

Metrics Explorer has two query modes. Switch between them at any time using the toggle at the top of the query bar — your work carries over.

ModeWhen to use
BuilderPick a metric, add label filters, layer range and aggregation stages with no PromQL
PromQLWrite or paste raw PromQL with autocomplete; useful for advanced functions and debugging

Builder Mode

Builder mode constructs PromQL from a small set of stages. Stages compose left-to-right into the final query.

StagePurpose
FilterPick a metric and add label matchers (=, !=, =~, !~)
RangeWrap the series with a range function (rate, irate, increase, *_over_time, …)
AggregateApply an aggregation (sum, avg, min, max, count, topk, quantile, …) with optional by/without grouping
Histogram QuantileCompute a quantile from a classic histogram (added as the outermost stage)

Stages follow PromQL composition rules: at most one Range stage (innermost), any number of Aggregate stages, and at most one Histogram Quantile stage (outermost). Builder mode picks sensible defaults based on the selected metric type — for example, counters get rate + sum by (), gauges get avg by (), and classic histograms get rate + sum by (le).

  1. Navigate to Metrics Explorer
  2. In the Filter stage, pick a metric and optionally add label matchers
  3. Adjust or add a Range stage. Pick a function and a window — $__rate_interval adapts automatically to the dashboard time range
  4. Adjust or add an Aggregate stage. Choose a function and (optionally) a by or without grouping
  5. For classic histograms, add a Histogram Quantile stage to compute the desired percentile (default 0.99)
  6. Click Run Query or press + (macOS) / Ctrl+ to execute

Metrics Explorer with a Filter, Range, and Aggregate stage and the resulting visualization

The PromQL preview under the stages shows exactly what will be sent on Run Query. Use Add to Dashboard or Create Alert in the results panel to promote the query without rewriting it.

PromQL Mode

PromQL mode is an editor backed by autocomplete against your live metrics catalog. Use it when you need anything beyond what Builder mode exposes — binary operators, vector matching, math across two metrics, absent(), clamp_*, label_replace, multi-metric queries, and so on.

  • LogQL-style autocomplete is supported for metric names, labels, and label values
  • Queries are not auto-run. Click Run Query or use + / Ctrl+
  • Use the built-in dashboard variables like $__rate_interval and $__interval for portable queries

Range Functions

The Range stage supports the following PromQL range-vector functions:

FunctionNotes
rate, iratePer-second average and instantaneous rate of a counter
increaseTotal increase of a counter over the window
delta, ideltaDifference and instantaneous difference of a gauge
sum_over_time, avg_over_time, min_over_time, max_over_time, count_over_timeTime-window aggregations
quantile_over_timeQuantile of a series over the window (takes a quantile parameter)
stddev_over_time, stdvar_over_timeStandard deviation and variance over the window
last_over_time, present_over_time, absent_over_time, mad_over_timeLatest value, presence checks, and median absolute deviation

Aggregation Functions

The Aggregate stage supports:

  • Reducers: sum, avg, min, max, count, count_values, group
  • Spread: stddev, stdvar
  • Selectors: topk, bottomk (default k = 10)
  • Quantile: quantile (default 0.99)

Each aggregation can be grouped with by (<labels>) or without (<labels>) to control how series are collapsed.

Adding a Query to a Dashboard

Once a query is running, you can promote it to a dashboard panel without rewriting it.

  1. Run a query in either Builder or PromQL mode
  2. In the results panel, click Add to Dashboard
  3. Pick an existing dashboard or create a new one, and give the panel a descriptive name
  4. The visualization type (timeseries or table) is preserved on the dashboard panel

Add to Dashboard modal with dashboard selector and panel name

The promoted panel uses the exact PromQL from the explorer. If you used a built-in variable like $__rate_interval, the panel adapts to the dashboard’s time range automatically.

Creating Alerts from Queries

You can turn any running query into a metric alert without leaving Metrics Explorer.

Create Alert modal with PromQL preview, threshold, sensitivity, severity, and destinations

  1. Run the query you want to alert on

  2. In the results panel, click Create Alert

  3. Configure the alert:

    FieldDescription
    Rule NameUnique name for the alert rule
    ThresholdOperator (>, <, >=, <=, ==, !=) and value
    SensitivityTrigger when the threshold is breached for N bad minutes out of any M total minutes
    Severitycritical, warning, or info
    Notification GroupingGroup all timeseries into a single notification, or notify per-series
    Alert DestinationsOne or more notification channels to send the alert to
    AnnotationsOptional rule description and runbook URL
  4. Click Create Alert

The PromQL query is sent as-is to Alert Studio, where you can later edit thresholds, destinations, and annotations.

Best Practices

Query construction:

  • Filter on service, env, or other low-cardinality labels first to keep queries fast
  • Use $__rate_interval so queries scale across short and long time ranges
  • Add a by (<label>) grouping when you want one series per dimension; otherwise series collapse into a single line

Dashboard promotion:

  • Run the query and confirm the visualization before promoting
  • Give panels short, descriptive names — they become the panel title on the dashboard
  • For percentile queries, finalize the histogram quantile stage in the explorer before adding the panel

Alerting:

  • Use sensitivity windows (N bad minutes out of M) to avoid flapping on transient spikes
  • Set Notification Grouping when an alert may fire across many series at once and you want a single notification per evaluation

Troubleshooting

  • Query returns no data

    • Verify the metric exists. Switch to Builder mode and confirm the metric appears in the picker for the selected time range.
    • Check label matchers. Regex matchers (=~, !~) are anchored — use .* to match substrings.
    • Widen the time range. Newly ingested metrics may not yet be queryable in the last few seconds.
  • “Time range too large” or “too many samples”

    • Reduce the time range, narrow filters, or aggregate aggressively (sum, avg by (...)) before plotting.
  • Builder defaults look wrong for a metric

    • The default range/aggregate stages are picked from the metric type. For unusual metrics, switch to PromQL mode and write the query directly.
  • Add to Dashboard or Create Alert is missing

    • Both actions live in the results panel and only appear after a query has run successfully. Press Run Query first.

Please get in touch with us on Discord or Email if you have any questions.