Monitor Prometheus alerts with Alertmonitor
Alertmonitor is a graphical web interface for displaying alerts from Prometheus monitoring system.

Features:
- Generic webhook endpoint
- Processing of Prometheus Alertmanager alerts
- Support for additional labels on alerts
- Support for tagging alerts
- Metrics endpoint
- Active alerts
- Alarm-Clear autocorrelation
- Journal of events (history)


Alertmonitor is easy to run:

docker run -d -p 8080:8080 matjaz99/alertmonitor


Add some labels to alert rules:

groups:
- name: my-alerts
  rules:
  - alert: CPU usage
    expr: 100 - (avg(irate(node_cpu_seconds_total{mode="idle"}[1m]) * ON(instance) GROUP_LEFT(node_name) node_meta * 100) BY (node_name)) > 80
    for: 1m
    labels:
      severity: critical
      priority: low
      sourceinfo: CPU 1
      tags: hardware, cpu, overload
      instance: '{{$labels.instance}}'
      nodename: '{{$labels.node_name}}'
    annotations:
      description: Node {{ $labels.node_name }} CPU usage is at {{ humanize $value}}%.
      summary: CPU alert for Node '{{ $labels.node_name }}'


Configure alertmanager to send alerts to webhook receiver in alertmonitor:

route:
  receiver: alertmonitor
  group_by: [alertname]
  group_wait: 10s
  group_interval: 5m
  repeat_interval: 3h

receivers:
- name: alertmonitor
  webhook_configs:
  - url: http://alertmonitor:8080/alertmonitor/webhook
    send_resolved: true