summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-07-05 21:33:07 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-07-05 21:33:07 +0200
commit3b5d2a806fce7387f6a58047bbe9a5b7e60cfd3f (patch)
tree1c96b7f0646a18a7bfd9b63941446b058e80027d /inventory/host_vars
parentmove ele-mon to ip 192.168.18.222 (diff)
e22: monitoring host fixed and tweaks
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/ele-helene.yml23
-rw-r--r--inventory/host_vars/ele-mon.yml15
2 files changed, 34 insertions, 4 deletions
diff --git a/inventory/host_vars/ele-helene.yml b/inventory/host_vars/ele-helene.yml
index e70cf2df..7947f05a 100644
--- a/inventory/host_vars/ele-helene.yml
+++ b/inventory/host_vars/ele-helene.yml
@@ -38,3 +38,26 @@ installer_storage:
lv: installer
size: 3G
fs: ext4
+
+
+prometheus_exporter_node_textfile_collector_scripts:
+ - deleted-libraries
+ - smartmon
+
+prometheus_exporters_extra:
+ - ssl
+ - ipmi
+
+prometheus_exporter_ipmi_modules:
+ default:
+ collectors:
+ - bmc
+ - ipmi
+ - chassis
+ - sel
+
+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
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