diff --git a/ansible/roles/prometheus/files/alert_rules.yml b/ansible/roles/prometheus/files/alert_rules.yml index d94ccc17..81ca3da5 100644 --- a/ansible/roles/prometheus/files/alert_rules.yml +++ b/ansible/roles/prometheus/files/alert_rules.yml @@ -12,7 +12,7 @@ groups: expr: up != 1 for: 5m annotations: - summary: '{{ $labels.instance }} is not `up`' + summary: '{{ $labels.instance }} {{if $labels.ec2_host}} ({{$labels.ec2_host}}) {{end}} is not `up`' - alert: systemd # yes, just "systemd", it's unclear what's going wrong :-) expr: node_systemd_system_running != 1 # that's basically output of `systemctl is-system-running`