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.
- Creating an alarm
Put alarm name and choose CPUUtilization as metric name and interval can vary.
- Trigger rules
- Define Alarm Notifications
Choose root comapartment as our topic is created in root only.
Enable and save this alarm.
Alarm is created.
- Alarm Visibiilty
Navigate Observability & Management-->Monitoring-->Choose Compartment
We follow the same procedure for the storage as well.