summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-12-20 18:47:22 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-12-20 18:47:22 +0100
commit31cce0e0219a77bfc68bfd6bc18b6e479aa3f99f (patch)
tree87a03d47223730f4b1f49ff0e4267e31ea12f197 /inventory/host_vars
parentch-iot: add mosquitto (diff)
add monitoring for mosquitto
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/ch-iot.yml12
-rw-r--r--inventory/host_vars/ch-mon.yml2
2 files changed, 13 insertions, 1 deletions
diff --git a/inventory/host_vars/ch-iot.yml b/inventory/host_vars/ch-iot.yml
index 1fb732d4..3772e9a6 100644
--- a/inventory/host_vars/ch-iot.yml
+++ b/inventory/host_vars/ch-iot.yml
@@ -55,7 +55,17 @@ spreadspace_apt_repo_components:
prometheus_exporters_extra:
- chrony
-# - mosquitto
+ - mosquitto
+
+prometheus_job_multitarget_blackbox__probe:
+ ch-mon:
+ - instance: "ssh-{{ inventory_hostname }}"
+ target: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:{{ ansible_port | default(22) }}"
+ module: ssh_banner
+ - instance: "mqtt-mqtt.chaos-at-home.org"
+ target: "{{ network_zones.svc.prefix | ansible.utils.ipaddr(network_zones.svc.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:1883"
+ module: "tcp_tls_connect"
+ hostname: "mqtt.chaos-at-home.org"
managed_ca_authorities:
diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml
index 4ede061a..7671b155 100644
--- a/inventory/host_vars/ch-mon.yml
+++ b/inventory/host_vars/ch-mon.yml
@@ -254,6 +254,8 @@ grafana_dashboards:
datasource: "Prometheus"
- file: whawty-nginx-sso
datasource: "Prometheus"
+ - file: mosquitto
+ datasource: "Prometheus"
grafana_admin_password: "{{ vault_grafana_admin_password }}"