Selecting the Interval for a Query
Select the interval, or time window, for querying metric data in Monitoring.
- Example: One-Minute Interval
-
CpuUtilization[1m].mean()
Supported values for interval depend on the specified time range in the metric query (not applicable to alarm queries). More interval values are supported for smaller time ranges. For example, if you select one hour for the time range, then all interval values are supported. If you select 90 days for the time range, then only interval values between 1 hour and 1 day are supported. For valid interval options in MQL expressions, see Interval (Monitoring Query Language (MQL) Reference).
For alarm instructions, see Creating a Basic Alarm.
This section describes how to select the interval on the Metrics Explorer page. For alarm query edits, see Creating a Basic Alarm.
Use the oci monitoring metric-data summarize-metrics-data command and required parameters to query metric data. Use the
--query-text
parameter to select the interval (part of the MQL expression).oci monitoring metric-data summarize-metrics-data --query-text <mql_expression> [...]
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Monitoring.
Run the SummarizeMetricsData operation to query metric data. Use the
query
attribute to select the interval (part of the MQL expression). For an example, see SummarizeMetricsDataDetails.