Explore metrics data with Discover in Kibana
Discover offers a dedicated experience for exploring metrics data. When Discover recognizes metrics data, it enables specific features and default behaviors to optimize your data exploration. Metrics-specific exploration in Discover automatically generates a grid of charts showing available metrics from your data. Use this view to quickly search and filter metrics, break metrics down by dimensions, review the ES|QL query that generates the charts, and add metrics to dashboards with a single click.
If you're just getting started with Discover and want to learn its main principles, you should get familiar with the default experience.
Use the TS command to select the data source. For example, the following query returns all of your metrics data:
TS metrics-*
To visualize your metrics data as charts:
- The data stream needs its Index mode set to Time series. Open Index Management using the global search field, then select the Data Streams tab to find your data stream's index mode.
- The metric must be a time series metric.
The dedicated metrics view is only available in ES|QL mode. Select ES|QL or Try ES|QL from Discover.
You can also query a specific index:
TS metrics-index-1
By default, all data stored in a metrics-* index is recognized as metrics data and triggers the Discover experience described on this page.
Viewing metrics data in Discover requires at least read privileges for Discover.
For more on assigning Kibana privileges, refer to the Kibana privileges documentation.
All metrics in the grid have data. If a metric appears empty, it's likely a counter metric where the scrape interval is smaller than the bucket size. To view the data, either expand the time range or click Explore for that metric and reduce the number of buckets in the query.
With your data loaded, use the metrics charts to:
Search for specific metrics
Use the search function to find and visualize specific metric data:
Break down metrics by dimensions
Break down your metrics by dimensions to find metrics that contain those dimensions and identify which values in those dimensions contribute the most to each metric.
Only fields mapped as dimensions in a time series data stream are available for metric breakdown. If an expected dimension is missing, verify that the field is mapped as a time_series_dimension in your
time series data stream (TSDS) configuration.
You can filter the view to focus on specific values in two ways:
- Click a chart value: After you break down by one or more dimensions, hover over a chart and click the value you want to filter by. This adds the corresponding dimension-value pairs to your query and updates the metrics view to show only metrics with those dimension values.
- Edit the query directly: Manually add a
| WHEREclause to your ES|QL query. For example:| WHERE <dimension> = <value>
View metric charts in full screen
Select full screen ( ) to view the metric charts in full-screen mode.
For each metric chart, you can perform the following actions:
- Explore ( ): Open Discover filtered to focus on that specific metric.
- Inspect ( ): Show details about the query request and response.
- View details ( ): Get additional information about the metric like metric type, dimensions, and ES|QL query.
- Copy to dashboard ( ): Save the metric chart to an existing or new dashboard.
- Add to case ( ): Add the metric chart to a case.