To integrate Managed Service for Prometheus (Prometheus) with third-party systems such as Grafana, Istio, and Horizontal Pod Autoscaler (HPA), you must obtain the API URL of Prometheus. To obtain the API URL, perform the following steps:

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Service > Prometheus Instances.
  3. Find the Prometheus instance and click Settings in the Actions column.
  4. On the Settings tab, copy a public HTTP API address or a private HTTP API address based on your business requirements.
    Note If you want to import data from a Prometheus instance for cloud services, copy an HTTP API address based on the cloud service.
    pg_pm_settings_tab_agent_settings
  5. Optional:Click Generate Token in the upper part of the tab to obtain the authentication token of the Prometheus instance. This way, you can transfer data from the Prometheus instance to your Grafana system with higher security.
    Important After the authentication token is generated, you must specify the token when you add the Prometheus instance to your Grafana system as a data source. Otherwise, monitoring data cannot be read from the Managed Service for Prometheus.
    Copy a token

After you obtain the API URL, add it to third-party systems such as Grafana, Istio, and HPA. For more information about how to integrate Prometheus with Grafana, see Import data from Managed Service for Prometheus to a local Grafana system.