Section 2 · Metrics Drilldown

Navigate the metric hierarchy to find and filter

Estimated time: 1 min

How to find and filter metrics

Prometheus metrics have a name, labels, and label values. Metrics Drilldown lets you move through that structure.

Metric hierarchy showing name, labels, and values

The structure

LevelWhat it isExample
NameThe metric you selectnode_cpu_seconds_total
LabelsLabel names on that metricjob, instance, mode
Label valuesOne value of a labelmode="idle"
Time stampThe visualization on the Breakdown tab for each label valueCPU time for server-01 with mode="idle"

How you move through it

  1. Select a data source.
  2. Optionally select Add label and choose a label name, an operator, and a value. You can also type keywords in the metric search bar.
  3. Select the metric. The control on the metric panel is Select.
  4. On the Breakdown tab, select Select on a label, then select Add to filters on the value you want.

The Breakdown tab shows a time series for each label-value pair of the metric you selected.

If a metric or its labels appear in Explore but not here, the data source Series limit may be hiding them. The default is 40,000, and it applies to metrics, labels, and values. Search with a name filter such as __name__ = vm_http, or raise Series limit in the Prometheus data source settings. Raising the limit can affect Metrics Drilldown performance.