You can use ARMS Prometheus to view monitoring dashboards and performance metrics that are preconfigured for Container Service for Kubernetes. This topic describes how to enable Application Real-Time Monitoring Service (ARMS) Prometheus in Container Service for Kubernetes.

Background information

ARMS Prometheus is fully compatible with the open-source Prometheus ecosystem. It supports monitoring a wide variety of components and provides multiple ready-to-use dashboards. With ARMS Prometheus, you do not need to build a Prometheus monitoring system from scratch. The service saves you the trouble of managing the underlying services, such as data storage, data presentation, and system operations and maintenance.

  • Lightweight, stable, and retry mechanism
  • Unlimited data collection and storage
  • Compatibility with open-source systems
  • Cost-effectiveness

For more information about ARMS Prometheus, see ARMS Prometheus overview.

Step 1: Authorize Container Service for Kubernetes to access ARMS

To enable ARMS Prometheus, you must authorize Container Service for Kubernetes to access ARMS.
Note You must use your Alibaba Cloud account to perform authorization.
  1. Log on to the ACK console.
  2. In the left-side navigation pane, click Clusters.
  3. On the Clusters page, find the target cluster and click Manage in the Actions column.
  4. On the Basic Information page, go to the Cluster Resources section and click the value of Worker RAM Role.
  5. On the Permissions tab, click the value in the Policy column.
  6. Click Modify Policy Document and add the following contents to Policy Document.
            {
                 "Action": "arms:*",
                 "Resource": "*",
                 "Effect": "Allow"
            }
    policy
  7. Click OK.

Step 2: Enable ARMS Prometheus

  1. Log on to the ACK console.
  2. In the left-side navigation pane, choose Marketplace > App Catalog.
  3. On the App Catalog page, click the Alibaba Cloud Apps tab and click ack-arms-prometheus.
  4. On the App Catalog - ack-arms-prometheus page, click the Parameters tab.
  5. On the Parameters tab, set parameter cluster_id.
    Note

    The system automatically sets the value to the ID of the target cluster. To find the cluster ID, choose Clusters > Clusters in the left-side navigation pane, find the target cluster on the Clusters page, and the cluster ID is displayed in the Cluster Name/ID column.

  6. On the App Catalog - ack-arms-prometheus page, go to the Deploy tab on the right, select the target cluster, and click Create.
    arms
    Note Namespace and Release Name are set to arms-prom by default.

Result

Go to the ARMS console and click Prometheus Monitoring in the left-side navigation pane. Find the target cluster and click a plug-in to view monitoring data in the dashboard.deployment