This topic describes how to connect a registered Kubernetes cluster to Managed Service for Prometheus over the Internet. You can perform the steps in this topic if your Kubernetes cluster is not connected to the Alibaba Cloud internal network over an Express Connect circuit.

Prerequisites

A self-managed Kubernetes cluster is connected to a cluster in an Alibaba Cloud data center. For more information, see Create a cluster registration proxy and register a Kubernetes cluster that is deployed in a data center.

Scenario

Your registered Kubernetes cluster is not connected to the Alibaba Cloud internal network over an Express Connect circuit. You can deliver metrics to Managed Service for Prometheus over the Internet.

Step 1: Install the ack-arms-prometheus agent on the registered Kubernetes cluster

Install the ack-arms-prometheus agent on the registered Kubernetes cluster. For more information, see Enable Prometheus Service for a registered cluster.

Step 2: Configure the Kubernetes cluster

  1. Log on to the ACK console.
  2. In the left-side navigation pane of the ACK console, click Clusters.
  3. On the Clusters page, click the name of the cluster that you want to configure, or click Details in the Actions column of the cluster.
  4. In the left-side navigation pane, choose Applications > Helm.
  5. Find the Helm whose namespace and release name are arms-prom and click Update in the Actions column.
  6. In the Edit YAML dialog box, add mode:public to the args field or change the value of the mode parameter to public.
  7. After you edit the YAML file, click OK.

Verify the result

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Service > Prometheus Instances.
  3. Click the name of the Prometheus instance to which you want to connect.
  4. In the top navigation bar of the Prometheus Monitoring page, select the region where the Kubernetes cluster resides.
    Check whether the data in the connected self-managed Kubernetes cluster is monitored.