Prometheus Integration
Requirements
In AlertManager
Supported Versions
Setup Steps
In Flashduty
Using Private Integration
Expand
1.
2.
3.
4.
Using Shared Integration
Expand
1.
2.
3.
Route
to configure more routing rules)4.
5.
In AlertManager
Step 1: Configure Alertmanager
1.
2.
3.
receivers:
- name: 'flashcat'
webhook_configs:
- url: '<Your Integration Push URL>'
send_resolved: true
receivers:
- name: 'flashcat'
webhook_configs:
- url: '<Your Integration Push URL>'
send_resolved: true
http_config:
proxy_url: 'http://proxyserver:port'
4.
route:
receiver: 'flashcat'
route:
receiver: 'feishu'
- routes:
receiver: 'flashcat'
5.
6.
7.
Step 2: Configure Timestamp
1.
2.
3.
annotations:
timestamp: '{{ with query "time()" }}{{ . | first | value }}{{ end }}'
...
4.
5.
6.
Severity Mapping
severity
, priority
, and level
from alert event labels in that order. The corresponding value will be used as Prometheus's own alert severity. If none are found, the system automatically sets the Prometheus alert severity to Warning
.Prometheus | Flashduty | Status |
---|---|---|
critical | Critical | Critical |
warning | Warning | Warning |
warn | Warning | Warning |
info | Info | Info |
acknowledged | Info | Info |
unknown | Info | Info |
unk | Info | Info |
ok | Ok | Ok |
FAQ
Why am I not receiving alerts in Flashduty?
In Flashduty
1.
2.
In AlertManager
1.
2.
3.
4.
修改于 2025-03-27 07:44:28