Viewing your Prometheus metrics - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. In the navigation pane, choose Metrics.

  3. In the list of namespaces, choose ContainerInsights/Prometheus or ECS/ContainerInsights/Prometheus.

  4. 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
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. In the navigation pane, choose Performance Monitoring.

  3. 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
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. In the navigation pane, choose Dashboards.

  3. Choose Create Dashboard. Enter a name for the new dashboard, and choose Create dashboard.

  4. In Add to this dashboard, choose Cancel.

  5. Choose Actions, View/edit source.

  6. Download one of the following JSON files:

  7. 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

  8. Copy the entire JSON blob and paste it into the text box in the CloudWatch console, replacing what is already in the box.

  9. Choose Update, Save dashboard.