diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-07-05 21:33:07 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-07-05 21:33:07 +0200 |
commit | 3b5d2a806fce7387f6a58047bbe9a5b7e60cfd3f (patch) | |
tree | 1c96b7f0646a18a7bfd9b63941446b058e80027d /inventory/host_vars/ele-mon.yml | |
parent | move ele-mon to ip 192.168.18.222 (diff) |
e22: monitoring host fixed and tweaks
Diffstat (limited to 'inventory/host_vars/ele-mon.yml')
-rw-r--r-- | inventory/host_vars/ele-mon.yml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/inventory/host_vars/ele-mon.yml b/inventory/host_vars/ele-mon.yml index 66e87343..cec5adc5 100644 --- a/inventory/host_vars/ele-mon.yml +++ b/inventory/host_vars/ele-mon.yml @@ -64,6 +64,13 @@ prometheus_exporter_blackbox_modules_extra: prober: icmp +prometheus_job_multitarget_blackbox__probe: + ele-mon: + - instance: "ssh-{{ inventory_hostname }}" + target: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address') }}:{{ ansible_port | default(22) }}" + module: ssh_banner + + prometheus_alertmanager_web_external_url: "http://{{ network.primary.address | ipaddr('address') }}/alertmanager/" prometheus_alertmanager_smtp: smarthost: "mailrelay.chaos-at-home.org:587" @@ -75,10 +82,10 @@ prometheus_alertmanager_smtp: prometheus_alertmanager_route: receiver: equinox - # routes: - # - match_re: - # instance: ^$ - # receiver: empty + matchers: + - 'alertname != PrometheusAlertmanagerE2eDeadManSwitch' + group_by: + - instance prometheus_alertmanager_receivers: - name: empty |