From 7f98afa0a569ab203a10bcf48a363b73b954d004 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 27 Mar 2022 03:34:50 +0200 Subject: add ch-epimetheus to monitoring --- chaos-at-home/ch-epimetheus.yml | 3 +++ inventory/host_vars/ch-epimetheus.yml | 23 +++++++++++++++++++++++ inventory/hosts.ini | 1 + 3 files changed, 27 insertions(+) diff --git a/chaos-at-home/ch-epimetheus.yml b/chaos-at-home/ch-epimetheus.yml index d8a95940..5900ce3d 100644 --- a/chaos-at-home/ch-epimetheus.yml +++ b/chaos-at-home/ch-epimetheus.yml @@ -8,6 +8,9 @@ - role: core/zsh - role: core/ntp - role: core/cpu-microcode + - role: apt-repo/spreadspace + - role: nginx/base + - role: monitoring/prometheus/exporter - role: network/wakeonlan - role: storage/luks/volumes - role: storage/zfs/pools diff --git a/inventory/host_vars/ch-epimetheus.yml b/inventory/host_vars/ch-epimetheus.yml index f6e05e22..d339bb1a 100644 --- a/inventory/host_vars/ch-epimetheus.yml +++ b/inventory/host_vars/ch-epimetheus.yml @@ -24,6 +24,29 @@ apt_repo_components: - non-free ## for microcode updates +spreadspace_apt_repo_components: + - prometheus + +prometheus_exporter_node_textfile_collector_scripts: + - deleted-libraries + - smartmon + +prometheus_exporters_extra: + - ssl + +prometheus_job_multitarget_blackbox__probe: + ch-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_job_multitarget_ssl__probe: + ch-epimetheus: + - instance: "sslcert-prometheus-{{ inventory_hostname }}" + target: "/etc/ssl/prometheus/**/*.pem" + module: file + + luks_volumes: crypto-sata0: passphrase: "{{ vault_luks_volumes['crypto-sata0'].passphrase }}" diff --git a/inventory/hosts.ini b/inventory/hosts.ini index a3ed84d0..e530a847 100644 --- a/inventory/hosts.ini +++ b/inventory/hosts.ini @@ -409,6 +409,7 @@ ch-mon ch-router ch-phoebe ch-prometheus +ch-epimetheus ch-apps ch-sensors1 [promzone-chaos-at-home:children] -- cgit v1.2.3