OCI Monitoring is good for basic metrics, but enterprises need richer dashboards, custom alerting, and long-term metric retention. The Grafana + Prometheus + Alertmanager stack is the industry standard for infrastructure observability — and it runs beautifully on OCI compute.
Architecture Overview
The recommended monitoring stack architecture on OCI:
- Prometheus server on a dedicated VM (VM.Standard.E4.Flex, 4 OCPU, 32GB RAM) for metric scraping and storage
- Grafana on the same or separate VM for dashboards and visualisation
- Alertmanager for alert routing to email, Slack, PagerDuty, or OCI Notifications
- Node Exporter on every monitored instance for OS-level metrics (CPU, memory, disk, network)
- Blackbox Exporter for endpoint monitoring (HTTP, TCP, ICMP probes)
- OCI Metrics Exporter for pulling OCI-native metrics into Prometheus
Need help implementing this?
Our certified engineers can assess your environment and build the right solution — free initial assessment, fixed-quote pricing.
Key Dashboards to Build
Start with these essential dashboards for enterprise infrastructure:
- Infrastructure Overview — all hosts, CPU/memory/disk at a glance, colour-coded by threshold
- OCI Compute Dashboard — instance metrics, boot volume IOPS, network throughput per instance
- Database Dashboard — Oracle DBCS metrics, connection pool usage, query latency, tablespace usage
- Load Balancer Dashboard — request rate, error rate, latency percentiles, backend health
- Security Dashboard — firewall deny counts, failed SSH attempts, Cloud Guard findings
- Application Dashboard — HTTP response codes, request latency, error rates, active users
Alerting Strategy
Effective alerting prevents alert fatigue while catching real issues:
- Define severity levels: Critical (page immediately), Warning (review within 4 hours), Info (daily review)
- Critical alerts: disk > 90%, CPU > 95% for 5 min, instance unreachable, database connection failures
- Warning alerts: disk > 80%, memory > 85%, certificate expiry < 30 days, backup failures
- Route Critical to PagerDuty/phone, Warning to Slack/email, Info to dashboard only
- Include runbook links in every alert — analysts should know exactly what to do
- Review and tune alert thresholds monthly based on false positive rate
Retention and Scaling
Plan for growth from day one:
- Default Prometheus retention: 30 days local storage — sufficient for most operational needs
- For long-term retention: use Thanos or Cortex with OCI Object Storage as the backend
- Estimate storage: ~2 bytes per sample, 10,000 metrics at 15s scrape interval = ~50GB/month
- Use recording rules to pre-aggregate expensive queries — keeps dashboards fast
- Federation for multi-region: each region runs its own Prometheus, central Grafana queries all
Free tools for this topic
Check your own setup in under a minute
Need Help Implementing This?
Our certified engineers can assess your environment and implement the right solution for your business.
Related Services