You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Understanding how to monitor your OCI resources and manage costs is essential for operating a healthy cloud environment. This lesson covers OCI Monitoring, Logging, Audit, and cost management tools.
OCI Monitoring collects metrics from your cloud resources and enables alerting:
Automatically collected from OCI services:
| Service | Example Metrics |
|---|---|
| Compute | CPU utilisation, memory usage, disk I/O, network bytes |
| Block Volume | Read/write IOPS, throughput, latency |
| Object Storage | Request count, bytes transferred |
| Autonomous DB | CPU utilisation, storage used, SQL executions |
| Load Balancer | Request count, latency, backend health |
| Functions | Invocations, duration, errors |
Define alarms to trigger notifications when metrics exceed thresholds:
Example: Alert when Compute CPU utilisation exceeds 90% for 5 consecutive minutes.
Use the Monitoring Query Language (MQL) for custom metric queries:
CpuUtilization[1m]{resourceId = "<instance-ocid>"}.mean()
OCI Logging is a scalable service for ingesting, managing, and analysing log data:
| Category | Description | Examples |
|---|---|---|
| Audit Logs | API calls to OCI (automatic) | CreateInstance, DeleteBucket |
| Service Logs | Logs from OCI services | VCN flow logs, LB access logs, Object Storage logs |
| Custom Logs | Logs from your applications | Application logs via the Logging agent |
Organise logs into log groups for access control and management.
For advanced log analysis:
Audit automatically records all API calls made to your tenancy:
CreateInstance, UpdateSecurityList)Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.