Drill down your metrics
Drill down into your metrics to gain insight into your data without writing a query. First, filter the metrics surfaced by Metrics Drilldown. Then, select a metric to perform in-depth analysis.
Filter metrics in Metrics Drilldown
To begin drilling down your data, filter the metrics that appear in Metrics Drilldown.
Navigate to the Metrics Drilldown page in Grafana. Refer to Get started with Grafana Metrics Drilldown.
From the Data source dropdown, select a data source to view related metrics. Supported data sources include Prometheus and Prometheus-compatible data sources.
Visualizations for your selected data source appears.
(Optional) Select a label name from the Filter by label values dropdown. Then, follow the prompts to complete your filter criteria.
Note
You can apply multiple filters to your metrics.
(Optional) To search for metrics, type keywords in the search bar under Quick search metrics.
(Optional) Select how you want to sort metrics in the app. You can sort metrics alphabetically, with recently selected metrics first (default), by prevalence in dashboard panel queries, or by prevalence in alerting rules.
Use the time picker to select a date and time range from the dropdown menu, or use an absolute time range.
Click the down arrow next to the Refresh icon to set a refresh rate from the drop-down menu. The default refresh status is Off.
The visualizations in the Metrics Drilldown app adjust to reflect your filters.
Apply advanced filters
Apply advanced filters to further refine the metrics that appear in Metrics Drilldown. Access the following advanced filters from the left-side menu of the Metrics Drilldown app.
Filter type | Description |
---|---|
Rules filters | Filter metrics based on whether they use recording or alerting rules. |
Prefix filters | Filter metrics based on their name prefix in the Prometheus namespace. Multiple selected prefixes use “OR” logic. |
Suffix filters | Filter metrics based on their name suffix. Multiple selected suffixes use “OR” logic. |
Group by labels | Group metrics by their label values. |
Note
Multiple selections for a filter apply “OR” logic, but selections between filters apply “AND” logic. For example, if you select both
envoy
andkafka
as prefix filters, the app shows all metrics with a prefix of eitherenvoy
orkafka
. Then, if you selectcount
as a suffix filter, the app updates to only show metrics with thecount
suffix.
Analyze selected metrics
After filtering the metrics in Metrics Drilldown, you can further drill down into selected metrics.
From the Metrics Drilldown main page, locate the metric you want to drill down.
From the upper-right corner of the metric’s dashboard panel, click Select, as shown in the following screenshot.
A detailed view of the metric opens that shows the following details:
- A Breakdown tab that shows time series visualizations for each of the label-value pairs for the selected metric. To add a label-value pair to your filters, you can drill down on each label and then click Add to filter.
- A Related metrics tab that shows related metrics with relevant keywords.
After gathering your data in the Metric Drilldown app, you can take the following next steps:
- To open the visualization in Explore, where you can modify its underlying query or add it to a dashboard or incident, click the Open in Explore button.
- To copy the Metric Drilldown page’s URL to your clipboard, click Copy URL. Now, you can share it with others.
- To bookmark and save your Metric Drilldown journey, click the Star button.