26_Create Alerts on Metric(Instance ‐ CPU & Memory) & Storage Metrics - Nirvan-Pandey/OCI_DOC GitHub Wiki

26_1: Overview

Oracle Cloud Infrastructure (OCI) provides the ability to monitor various resource metrics, such as CPU usage, memory, disk I/O, and network traffic, using the Monitoring service. You can create alarms to notify you when these metrics exceed predefined thresholds, helping you proactively manage resource performance. In this document, we focus on creating an alarm for CPU utilization that triggers when it exceeds 75% on a compute instance. Similarly, you can set up alarms for other metrics to monitor and optimize your OCI resources effectively.

26_2: Alarm to check if CPU utilization exceeds 75%

  • Checking the instance and its metrics.

image image image

  • Creating an alarm

image

Put alarm name and choose CPUUtilization as metric name and interval can vary.

image

  • Trigger rules

image

image

  • Define Alarm Notifications

Choose root comapartment as our topic is created in root only.

image

image

Enable and save this alarm.

image

Alarm is created.

image

  • Alarm Visibiilty

Navigate Observability & Management-->Monitoring-->Choose Compartment

image

We follow the same procedure for the storage as well.