Managed Service for Prometheus provides a region-level global aggregation instance. A global aggregation instance is a virtual instance that aggregates all Prometheus instances in the current region. You can use this virtual instance for unified metric querying and alerting.
The aggregation instance feature is being deprecated and will be discontinued. We recommend using a global aggregation instance for monitoring and alerting instead. For more information, see Create an instance.
Prerequisites
-
You have created at least one Prometheus instance. For more information, see Create an instance.
-
You have installed Grafana on your local machine. For more information, see the official Grafana documentation.
View the aggregation instance
Log on to the ARMS console.
-
In the navigation pane on the left, choose .
-
Turn on the switch in the upper-right corner to view the HTTP API URL of the aggregation instance. You can use the HTTP API URL to connect data from a Managed Service for Prometheus global aggregation instance to your local Grafana for unified metric data viewing. On the Global Configurations page, the switch on the right side of the Aggregation Instance section is enabled by default. The HTTP API URL (Grafana Read Address) section below displays the URLs for the public network and internal network in a table. Click Generate token to generate a token to enhance data read security.
Add a global aggregation instance to Grafana
Add the HTTP API URL you obtained as a data source in your on-premises Grafana.
-
Log on to your on-premises Grafana system as an administrator.
-
In the navigation pane on the left, choose .
NoteOnly administrators can see this menu.
-
On the Data Sources tab, click Add data source.
-
On the Add data source page, click Prometheus.
-
On the Settings tab, enter a custom name in the Name field and paste the HTTP API URL into the URL field.
-
Click Save & Test at the bottom of the page to add the global aggregation instance.
View metric data
After adding the global aggregation instance as a data source in Grafana, you can use the Explore page to view metrics from services such as Managed Service for Prometheus, integrated cloud services, and Application Monitoring.
-
Log on to your on-premises Grafana system.
-
In the navigation pane on the left, choose Explore.
-
From the drop-down list in the upper-left corner of the Explore page, select the PrometheusGlobalView data source. In the Metrics browser, enter a metric name and press Enter.
-
A chart for the specified metric appears, displaying metric data from the global aggregation instance. If no data is displayed, verify that the URL is correct and that the data source contains data from Managed Service for Prometheus.
On the Grafana Explore page, select PrometheusGlobalView as the data source. In the Metrics browser, enter
kafka. The drop-down list shows matching metrics, such asarms_cms_kafka_instance_disk_capacity,arms_cms_kafka_instance_message_input,arms_cms_kafka_instance_message_output,arms_cms_kafka_message_accumulation,arms_cms_kafka_message_accumulation_onetopic,arms_cms_kafka_topic_message_input, andarms_cms_kafka_topic_message_output. Select a metric and click Run query to view its chart.