From 4c706509f53aecdb897f5b8a532b17e0bc18943f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 30 Sep 2021 02:57:44 +0200 Subject: add temporary test for radio helsinki --- inventory/host_vars/ch-mon.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'inventory') diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml index 015a420d..8c353e88 100644 --- a/inventory/host_vars/ch-mon.yml +++ b/inventory/host_vars/ch-mon.yml @@ -103,6 +103,21 @@ prometheus_job_multitarget_ssl__probe: target: "/etc/ssl/prometheus/**/*.pem" module: file +prometheus_server_jobs_extra: | + - job_name: 'node-helsinki' + static_configs: + - targets: + - 192.168.28.151:9100 + labels: + instance: rh-router-apu + metric_relabel_configs: + - source_labels: [ "mountpoint" ] + regex: ".*/\\.snapshot/.*" + action: drop + - source_labels: [ "__name__", "state" ] + regex: "node_systemd_unit_state;(activating|deactivating|inactive)" + action: drop + promethues_alertmanager_smtp: smarthost: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets['ch-prometheus-legacy']) | ipaddr('address') }}:25" -- cgit v1.2.3