Monitoring Containers with Managed Prometheus and Managed Grafana
This lesson explains Amazon Managed Service for Prometheus and Amazon Managed Grafana, the managed versions of the open-source tools container platforms commonly use, which appear in the exam alongside CloudWatch.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how Managed Service for Prometheus stores metrics.
- Describe how Managed Grafana visualises data from many sources.
- Monitor an EKS platform with both services.
Amazon Managed Service for Prometheus
Amazon Managed Service for Prometheus is a serverless, Prometheus-compatible metrics store. You create a workspace, and metrics are written to it with the Prometheus remote write protocol and queried with PromQL. Collection from Amazon EKS can use an AWS managed collector (an agentless scraper that you create for a cluster), the AWS Distro for OpenTelemetry collector, or an existing Prometheus server configured for remote write. The service scales ingestion and storage automatically, stores metrics for 150 days by default, and supports alerting rules and recording rules with an alert manager that can send to SNS.
Choose Managed Service for Prometheus when teams already instrument applications with Prometheus exporters and PromQL; choose CloudWatch Container Insights when the aim is AWS-native cluster monitoring with minimal setup. The two can coexist, and Container Insights can also collect Prometheus metrics.
Amazon Managed Grafana
Amazon Managed Grafana provides managed Grafana workspaces for visualising data from many sources: CloudWatch, Managed Service for Prometheus, X-Ray, Amazon OpenSearch Service, Athena and third-party sources. Users authenticate through IAM Identity Center or a SAML identity provider, and Grafana roles (Admin, Editor, Viewer) control what they can do. Workspaces use a service role, or permissions in each source account, to read data, which makes Grafana a common choice for a single visualisation layer across accounts and tools.
The following table summarises which service to choose for common requirements.
| Requirement | Service |
|---|---|
| Prometheus metrics from EKS without running Prometheus servers | Managed Service for Prometheus with a managed collector |
| Grafana dashboards over CloudWatch and Prometheus data with SSO | Amazon Managed Grafana |
| AWS-native metrics and alarms with least setup | CloudWatch (Container Insights for clusters) |
| Alerting on PromQL expressions | Managed Service for Prometheus alerting rules |
The following diagram shows the two managed services monitoring Amazon EKS clusters together.

Prometheus or Grafana?
Monitoring an EKS platform
A platform team runs several EKS clusters whose applications expose Prometheus metrics. The team creates one Managed Service for Prometheus workspace per environment and an AWS managed collector for each cluster, which scrapes the pods' /metrics endpoints with no in-cluster Prometheus to operate. Alerting rules such as rate(http_requests_total{status=~"5.."}[5m]) > 5 notify an SNS topic. An Amazon Managed Grafana workspace, with sign-in through IAM Identity Center, uses the Prometheus workspace and CloudWatch as data sources, so dashboards combine application metrics with RDS and ALB metrics.
Which query language is used with Amazon Managed Service for Prometheus?
Show answer
PromQL.
Exam Tips
Remember for the exam
- Managed Service for Prometheus stores Prometheus metrics; query with PromQL.
- AWS managed collectors scrape EKS metrics without running Prometheus servers.
- Managed Grafana visualises CloudWatch, Prometheus and other sources with SSO sign-in.
- Container Insights is the AWS-native alternative for cluster metrics.