Commit d38d79a6 authored by ale's avatar ale

Deduplicate generated alerts in HA setup

Removes the instance-specific 'monitor' label set on alerts, so that
multiple Prometheus instances in a HA setup all create the same
parent 99755a15
Pipeline #3380 passed with stage
in 4 minutes and 56 seconds
......@@ -13,7 +13,7 @@ route:
group_by: ['alertname', 'service']
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
repeat_interval: 12h
receiver: default
# The following inhibit rules are meant to work both with the job/host
......@@ -64,10 +64,17 @@
scrape_interval: "10s"
# Set an external label unique to this host, but remove it
# from the generated alerts so that they match across all
# Prometheus instances.
monitor: "{{ inventory_hostname }}"
- regex: monitor
action: labeldrop
- static_configs:
{{ targets_for_service('prometheus', 'prometheus', 9093) }}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment