web-app/src/assets/doc/alert-integration/prometheus.en-US.md
Users can directly configure the HertzBeat service address in the Alertmanager configuration of the Prometheus Server to replace the Alertmanager for receiving and processing alerts from the Prometheus Server.
prometheus.yml to add HertzBeat as the alert receiver configuration# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
- {hertzbeat_host}:1157
authorization:
type: 'Bearer'
credentials: '{token}'
{hertzbeat_host}:1157 is the address and port of the HertzBeat Server, modify according to the actual situation, and ensure network connectivity.
{token} is the authorization Token for the HertzBeat Server, replace the value after applying for a new Token.
Reload and start the Prometheus Server
curl -X POST http://localhost:9090/-/reload
curl http://localhost:9090/api/v1/rules
For more information, please refer to the Prometheus Alert Configuration Documentation