Viewing your Prometheus metrics
You can monitor and alarm on all your Prometheus metrics including the curated pre-aggregated metrics from App Mesh, NGINX, Java/JMX, Memcached, and HAProxy, and any other manually configured Prometheus exporter you may have added. For more information about collecting metrics from other Prometheus exporters, see Tutorial for adding a new Prometheus scrape target: Prometheus API Server metrics.
In the CloudWatch console, Container Insights provides the following pre-built reports:
-
For Amazon EKS and Kubernetes clusters, there are pre-built reports for App Mesh, NGINX, HAPROXY, Memcached, and Java/JMX.
-
For Amazon ECS clusters, there are pre-built reports for App Mesh and Java/JMX.
Container Insights also provides custom dashboards for each of the workloads that Container Insights collects curated metrics from. You can download these dashboards from GitHub
To see all your Prometheus metrics
Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/
. -
In the navigation pane, choose Metrics.
-
In the list of namespaces, choose ContainerInsights/Prometheus or ECS/ContainerInsights/Prometheus.
-
Choose one of the sets of dimensions in the following list. Then select the checkbox next to the metrics that you want to see.
To see pre-built reports on your Prometheus metrics
Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/
. -
In the navigation pane, choose Performance Monitoring.
-
In the drop-down box near the top of the page, choose any of the Prometheus options.
In the other drop-down box, choose a cluster to view
We have also provided custom dashboards for NGINX, App Mesh, Memcached, HAProxy, and Java/JMX.
To use a custom dashboard that Amazon has provided
Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/
. -
In the navigation pane, choose Dashboards.
-
Choose Create Dashboard. Enter a name for the new dashboard, and choose Create dashboard.
-
In Add to this dashboard, choose Cancel.
-
Choose Actions, View/edit source.
-
Download one of the following JSON files:
-
Open the JSON file that you downloaded with a text editor, and make the following changes:
-
Replace all the
{{YOUR_CLUSTER_NAME}}
strings with the exact name of your cluster. Make sure not to add whitespaces before or after the text. -
Replace all the
{{YOUR_REGION}}
strings with the Amazon Region where your cluster is running. For example,us-west-1
Make sure not to add whitespaces before or after the text. -
Replace all the
{{YOUR_NAMESPACE}}
strings with the exact namespace of your workload. -
Replace all the
{{YOUR_SERVICE_NAME}}
strings with the exact service name of your workload. For example,haproxy-haproxy-ingress-controller-metrics
-
-
Copy the entire JSON blob and paste it into the text box in the CloudWatch console, replacing what is already in the box.
-
Choose Update, Save dashboard.