Selecting the Metric Name for a Query
Select the name of the metric for querying metric data in Monitoring.
- Example: CPU Utilization
Valid metric names include predefined service metrics as well as custom metrics. For names of predefined service metrics, see Supported Services and Listing Metric Definitions. For alarm instructions, see Creating a Basic Alarm.
This section describes how to select the metric name on the Metrics Explorer page. For alarm query edits, see Creating a Basic Alarm.
- If the query isn't open, open it by clicking Edit queries.
- Select the Compartment that contains the metric name that you want.
- Select the Metric namespace that contains the metric name that you want.
- Select the Metric name that you want.
- Click Update Chart.
Use the oci monitoring metric-data summarize-metrics-data command and required parameters to query metric data. Use the
--query-textparameter to select the metric name (part of the MQL expression).
oci monitoring metric-data summarize-metrics-data [...] --query-text <mql_expression> [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Monitoring.