All Products
Search
Document Center

Managed Service for Prometheus:Query metrics and configure a data source for Grafana

Last Updated:Feb 11, 2026

Managed Service for Prometheus provides several ways to query metric data. This topic describes how to query metrics in the Alibaba Cloud console, Grafana, and a self-managed Prometheus system.

Prerequisites

You have activated Managed Service for Prometheus and connected at least one component. For more information, see Manage components.

Query metrics in the console

  1. Log on to the ARMS console.

  2. In the navigation pane on the left, click Integration Management.

  3. On the Integration Management page, click the Integrated Environments tab, and then click the name of the target environment.

    image

  4. On the details page, click the Metrics Explorer tab.

  5. In the Explore section, enter a Metric name, add a key-value pair in the Labels text box, and then click Run query in the upper-right corner of the page.

    image

    Note
    • Use the image area to select a time range. By default, data from the last hour is queried.

    • Click + Operations to add PromQL built-in functions, such as sum(), irate(), and absent(). For more information, see the official Prometheus documentation.

    • Click Code to switch to the PromQL statement input mode. For more information about PromQL syntax, see the official Prometheus documentation.

Query metrics in Grafana

Managed Service for Prometheus provides an HTTP API endpoint so that you can integrate Prometheus monitoring data into Grafana or retrieve monitoring data through the Prometheus API during custom development. For more information, see Adding Prometheus Data in Grafana.

Query metrics in a self-managed Prometheus system

Managed Service for Prometheus provides a standard Remote Read interface. This interface lets you remotely access monitoring data from your cloud-based Prometheus instance. For more information, see Use a Remote Read endpoint to access cloud-based Prometheus data from a self-managed Prometheus system.