All Products
Search
Document Center

:Manage a global aggregation instance

Last Updated:Apr 09, 2024

You can use the GlobalView feature of Managed Service for Prometheus to create a global aggregation instance in a region to aggregate all Prometheus instances in the region. Global aggregation instances support unified metric query and alerting.

Note

The old version of the GlobalView feature will be phased out. You can use the old version till it is officially retired. We recommend that you use the new version of the GlobalView feature to create global aggregation instances for the monitoring and alerting of Prometheus instances. For more information, see Create a global aggregation instance by using Managed Service for Prometheus.

Prerequisites

View a global aggregation instance

  1. Log on to the ARMS console.
  2. In the left-side navigation pane, choose Prometheus Service > Global Configurations.

  3. View the HTTP API endpoint of the global aggregation instance. You can use the HTTP API endpoint to import the data of the global aggregation instance to the local Grafana system. This way, you can view metric data in a unified manner. Global aggregation instances

Integrate the global aggregation instance into Grafana

You can configure the API endpoint that you obtain in View a global aggregation instance as a data source in the local Grafana system. To configure the data source, perform the following steps:

  1. Log on to the local Grafana system as an administrator.

  2. In the left-side navigation pane, choose Configuration > Data sources.

    Note

    This menu is visible only to the administrator.

  3. On the Data sources tab, click Add data source.

  4. On the Add data source page, click Prometheus.

  5. On the Settings tab, enter a name in the Name field and enter the API endpoint that you obtain in View a global aggregation instance in the URL field.

  6. Click Save & test.

View metric data

After you integrate the global aggregation instance into Grafana, you can use Explore to view all metrics of Managed Service for Prometheus, the cloud services that are integrated into Managed Service for Prometheus, and Application Monitoring.

  1. Log on to the local Grafana system.

  2. In the left-side navigation pane, click Explore.

  3. On the Explore page, select PrometheusGlobalView from the top drop-down list. In the Metrics browser field, enter a metric name and press the Enter key.

  4. In the charts that appear, view the metric data of the global aggregation instance. If no metric data is displayed, check whether the specified API endpoint is valid or whether the data source contains monitoring data.

    ex