Prometheus integration
This topic describes how to integrate a Prometheus monitoring source.
Introduction
Prometheus is an open source system monitoring and alerting toolkit. The Event Center supports quick and easy integration with Prometheus to centrally manage alerts and events. Follow these steps to integrate Prometheus alert records.
How to integrate Prometheus
Step 1: Find the Prometheus monitoring source
Navigate to O&M Event Center > Integration Center > Integration Configuration and find the Prometheus monitoring source. The Add Integration page for Prometheus provides the steps to complete the alert integration. Alternatively, you can integrate Prometheus alert records by connecting to Grafana.
Step 2: Modify the configuration file
Find the configuration file for the alertmanager module in Prometheus. Modify the file to include the following URL:
https://public-alert.aliyuncs.com/event/prometheus/{integration_key}The integration key in the URL is the Prometheus integration key from the Event Center.
receivers:
- name: 'Aliyunalert'
webhook_configs:
- url: 'https://public-alert.aliyuncs.com/event/prometheus/{integration_key}' Step 3: Enable the modified configuration file
Restart the alertmanager module to enable the modified configuration file.
Step 4: Confirm the integration
After you complete the configuration, click the Confirm Integration button under the integration key to complete the integration.
Step 5: Verify the integration
In Prometheus, configure alerting, subscribe to rules, and trigger an alert. The integration is successful if the alert status for the Prometheus monitoring source is `Accepted` on the Integration Configuration page.