capabilities.work

Summarize Instance CPU Metrics

A 2-step recipe with Oracle Cloud Infrastructure. We can help you get access.

Recipe · 2 steps

Summarize Instance CPU Metrics

Confirm an instance, then summarize CPU metric data for its compartment.

  1. Confirm the compute instance exists before querying its metrics.
  2. Query summarized metric data for the compartment over the supplied time range and resolution.
What you'll need to have ready
  • instanceId: The OCID of the compute instance to report on.
  • compartmentId: The OCID of the compartment the metrics belong to.
  • namespace: The metric namespace (e.g. oci_computeagent).
  • query: The Monitoring Query Language expression (e.g. CpuUtilization[1m].mean()).
  • startTime: The RFC 3339 start of the time range.
  • endTime: The RFC 3339 end of the time range.
  • resolution: The aggregation interval (e.g. 1m).
For your developer

Arazzo workflow oracle-cloud:summarize-instance-cpu-metrics, 2 operations: getInstance → summarizeMetricsData. Specs on APIs.io.