Discover Metrics
The Metrics page in OpenSearch Dashboards provides a dedicated interface for discovering, querying, and visualizing time-series metric data. This page, shown in the following image, is optimized for working with Prometheus metrics using PromQL.

The Metrics page is available in Observability workspaces. To access the Metrics page, navigate to an Observability workspace. Then, in the left navigation, expand Discover and select Metrics.
Configuring a Prometheus data source
Section titled âConfiguring a Prometheus data sourceâBefore you start, configure a Prometheus data source using one of the following methods.
Configuring a Prometheus data source in OpenSearch Dashboards
Section titled âConfiguring a Prometheus data source in OpenSearch DashboardsâTo configure a Prometheus data source in OpenSearch Dashboards, follow these steps:
- In the left navigation, go to Data Administration > Data sources.
- Select Create data source.
- Select Prometheus.
- Enter a Data source name and optional Description.
- Enter the Prometheus URI endpoint (for example,
http://prometheus-server:9090). - Configure the Authentication method:
- No authentication: Use if your Prometheus server does not require authentication.
- Basic authentication: Enter a username and password.
- AWS Signature Version 4: Use for Amazon Managed Service for Prometheus.
- Select Connect.
Configuring a Prometheus data source using the API
Section titled âConfiguring a Prometheus data source using the APIâAlternatively, you can configure a Prometheus data source programmatically. For more information, see the Data sources documentation.
Query panel
Section titled âQuery panelâYou can write and execute metric queries in the query panel at the top of the Metrics page. The query editor provides autocomplete suggestions and syntax highlighting for PromQL.
Writing queries
Section titled âWriting queriesâWrite queries using PromQL syntax. For example:
up{job="prometheus"}Running queries
Section titled âRunning queriesâTo run a query, enter your query in the query editor and then select the Refresh button.
You can run multiple PromQL queries together by separating them with a semicolon (;):
up{job="prometheus"};node_cpu_seconds_total{mode="idle"};Each query runs independently, and the results are combined in the output.
Time filter
Section titled âTime filterâUse the time filter to specify the time range for your metric data:
- Quick select: Choose a relative time range (for example, the last 15 minutes or the last 1 hour).
- Commonly used: Select from predefined time ranges.
- Custom: Specify absolute start and end times.
- Auto-refresh: Set an automatic refresh interval.
Viewing results
Section titled âViewing resultsâAfter running a query, the results are displayed in a tabbed interface containing the following views:
-
The Metrics tab displays the latest data point for each series in a table format.
-
The Raw tab shows the latest data point for each series as raw JSON returned by the data source.
-
The Visualization tab provides interactive charts for your metric data.
Configuring visualizations
Section titled âConfiguring visualizationsâWhen the Visualization tab is selected, a settings panel appears on the right side of the screen. Use this panel to:
- Select a chart type: Choose from line, bar, pie, gauge, or table visualizations.
- Map axes: Assign fields to the X and Y axes.
- Customize styles: Adjust colors, legends, gridlines, and other visual options.
When you modify the settings, the visualization is updated automatically.