From 7220af6cefd8e066f9b55961f6f035480f520a09 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 30 Jun 2024 00:32:19 +0200 Subject: prometheus: incooporate multitarget labelding to elevate hosts as well --- inventory/host_vars/ele-calypso.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inventory/host_vars/ele-calypso.yml') diff --git a/inventory/host_vars/ele-calypso.yml b/inventory/host_vars/ele-calypso.yml index 2f5648ac..75054533 100644 --- a/inventory/host_vars/ele-calypso.yml +++ b/inventory/host_vars/ele-calypso.yml @@ -122,7 +122,8 @@ prometheus_exporter_blackbox_modules_extra: prometheus_job_multitarget_blackbox__probe: ele-calypso: - - instance: "ssh-{{ inventory_hostname }}" + - svc_kind: ssh + svc_instance: "{{ inventory_hostname }}" target: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}:{{ ansible_port | default(22) }}" module: ssh_banner @@ -178,7 +179,7 @@ grafana_dashboards: datasource: "Prometheus" - file: chrony datasource: "Prometheus" - - file: blackbox + - file: blackbox/ssh datasource: "Prometheus" - file: network-ups-tools datasource: "Prometheus" -- cgit v1.2.3