These steps show how to create a query in the Metrics Explorer page, in Basic mode. To create a query in Advanced mode (MQL), see Editing the MQL Expression for a Query.
-
Open the navigation menu and click Observability & Management. Under Monitoring, click Metrics Explorer.
The Metrics Explorer page displays an empty chart with fields to build a query.
-
From the Console header, select the region that contains the metric data that you want.
-
In the query under the chart, select the compartment that contains the metric that you want.
-
Select the metric namespace that contains the metric that you want.
Note
The Metric namespace list shows metric namespaces for the selected compartment. For example, if the current compartment contains load balancers, then the list includes oci_lbaas.
-
Select the name of the metric.
-
Update the interval or statistic as needed.
- (Optional)
To select dimensions, provide values for the following fields:
- Dimension name: A qualifier specified in the metric definition. For example, the dimension
resourceId
is specified in the metric definition for CpuUtilization
.
- Dimension value: The value that you want to use for the specified dimension, for example, the resource identifier for an instance.
- Additional dimension: Adds another name-value pair for a dimension.
- (Optional)
To aggregate metric streams, select Aggregate metric streams.
-
Click Update Chart.
The chart shows data points for the custom metric, in a graph view. Example:

- (Optional)
To switch to a table view, click Show Data Table.
The chart shows data points for the custom metric, in a table view.
For information about directly editing MQL expressions or changing queries by using the CLI or API, see Editing the MQL Expression for a Query.