Hi, colleagues!
I setup and configured Alertmanager for getting email notifications, but
all of my alerts about different environments are gathered in one email and
sorted by alphabetical order by job_name. In test environment there are
approx. 250 alerts in one email. It doesn't work for urgents reaction.
Prometheus rules have 3 rules per 1 env. Now I'm testing 7 envs.
Prometheus config:
rule_files:
- "ft4rules.yml"
Alertmanager config:
receivers:
- name: 'EMails'
email_configs:
- to: '[email protected]
from: '[email protected]'
Rules.yml:
groups:
- name: FT4
rules:
- alert: Instance Code 0 Alert
expr: probe_http_status_code {job="FT4"} < 200
for: 1m
labels:
severity: "critical"
annotations:
title: "Instance Status"
description: "Store {{ $labels.instance }} is down. Error Code is {{
$value }}"
# Alert for instances http code less 200
- alert: Instance Health Down Alert
expr: probe_http_status_code {job="FT4"} > 399
for: 1m
labels:
severity: "critical"
annotations:
title: "Instance Status"
description: "Store {{ $labels.instance }} is down. Error Code is {{
$value }}"
Could you help me to split it?
Thank you in advance!
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/46df2c18-2bf9-4e19-b00e-6f6111010c38n%40googlegroups.com.