hi.
Clustered with two alertmanagers.
Prometeus also consists of two units.
prometheus has an external label and the settings are the same except that the value of replica is different.
Isn't alertmanager deduplication based on the label specified in group_by?
Since the replica label value is different, two notifications have been received, and I want to know if deduplication is possible only with the label specified in group_by.
The following definition is made in alertmanger.yml.
---
group_by: [region, alertname, instance, job]
group_wait: 1s
group_interval: 1m
receiver: test
routes:
-match:
job: icmp
receiver: test
---
・PrometeusA
prometheus.yml has the following definition:
---
external_labels:
region: us-east-1
replica: a
-job_name: icmp
metrics_path: / probe
params:
module: [icmp]
file_sd_configs:
-files:
-/usr/local/prometheus/config/targets/icmp_*.yml
relabel_configs:
-source_labels: [__address__]
target_label: __param_target
-source_labels: [__param_target]
target_label: instance
-target_label: __address__
---
・PrometeusB
prometheus.yml has the following definition:
---
external_labels:
region: us-east-1
replica: b
-job_name: icmp
metrics_path: / probe
params:
module: [icmp]
file_sd_configs:
-files:
-/usr/local/prometheus/config/targets/icmp_*.yml
relabel_configs:
-source_labels: [__address__]
target_label: __param_target
-source_labels: [__param_target]
target_label: instance
-target_label: __address__
---