Back to Hertzbeat

Prometheus Alert Integration

web-app/src/assets/doc/alert-integration/alertmanager.en-US.md

1.8.01.5 KB
Original Source

Prometheus Alert Integration

This document describes how to send alerts from Prometheus AlertManager to the HertzBeat alert platform.

Alertmanager Configuration Webhook

  1. Add the webhook configuration to the Alertmanager configuration file.
yaml
receivers:
  - name: 'webhook'
    webhook_configs:
      - url: 'http://{hertzbeat_host}:1157/api/alerts/report/alertmanager'
        send_resolved: true
        http_config:
          authorization: 
            type: 'Bearer'
            credentials: '{token}'
  • http://{hertzbeat_host}:1157/api/alerts/report/alertmanager is the webhook interface address provided by HertzBeat.
  • send_resolved: true indicates that alert recovery information will be sent.
  • The {token} in credentials is the token provided by HertzBeat.
  1. Restart the Alertmanager service.

Configuration Verification

  • Trigger Prometheus AlertManager alerts.
  • Check the alert data processing in the HertzBeat alert platform to verify if the alert data is correct.

Data Flow:

mermaid
graph LR
    A[Prometheus Alertmanager] --> B[Webhook]
    B --> C[HertzBeat Alert Platform]
    C --> D[Grouping Convergence]
    D --> E[Alert Suppression]
    E --> F[Alert Silence]
    F --> G[Alert Center]
    F --> H[Message Distribution]

Common Issues

  • Ensure that the webhook address in the Alertmanager configuration file is correct and that the network is smooth.
  • Check whether the alerts from Alertmanager are triggered and sent to the HertzBeat alert platform.