Integrate Amazon EKS
An Amazon CloudWatch managed Prometheus collector scrapes metrics that are Prometheus-compatible. For more information about Prometheus-compatible metrics, see What are Prometheus-compatible metrics?. Amazon EKS clusters expose metrics for the API server. Amazon EKS clusters that are Kubernetes version 1.28 or above also expose metrics for the kube-scheduler and kube-controller-manager. For more information, see Fetch control plane raw metrics in Prometheus format in the Amazon EKS User Guide.
The Amazon Managed Service for Prometheus User Guide provides detailed setup instructions. For instructions on configuring Amazon EKS clusters, access entries, and ConfigMap setup, see Set up managed collectors for Amazon EKS.
Note
The collector enriches each Amazon EKS metric with attributes that identify its origin — the instrumentation scope, the AWS account and Region, an inferred unit, and the cluster name and cluster ARN. You can filter and group on these attributes when you query your metrics with PromQL.
Create a scraper with CloudWatch destination
You can use GetDefaultScraperConfiguration to retrieve a general-purpose scraper configuration, or provide your own.
View the automatic dashboard
After the collector begins delivering your Amazon EKS metrics to CloudWatch, the CloudWatch console provides an automatic dashboard named EKS OTel. To open it, sign in to the AWS Management Console, open the CloudWatch console, choose Dashboards in the navigation pane, choose Automatic dashboards, and then choose EKS OTel. You can start monitoring your clusters without building any widgets or dashboards yourself.
If the automatic dashboard meets your needs, you can use it as is. To build a tailored monitoring experience, you can add any of its widgets to a custom dashboard. For more information about custom dashboards, see Using CloudWatch dashboards.
Cross-account observability
For cross-account Amazon EKS monitoring, we recommend using Amazon CloudWatch metric centralization. For more information, see CloudWatch metrics centralization.
For alternative cross-account scraper configurations, see Cross-account scrapers in the Amazon Managed Service for Prometheus User Guide.