From d815f156e3a39c4dba088521fe026ff5610870e6 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 4 Jun 2018 10:42:19 +0200 Subject: [PATCH] Try 005 --- dicos/70_prometheus.xml | 8 +++++++- tmpl/prometheus.yml | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dicos/70_prometheus.xml b/dicos/70_prometheus.xml index 7aa9549..05d092a 100644 --- a/dicos/70_prometheus.xml +++ b/dicos/70_prometheus.xml @@ -52,6 +52,7 @@ Node Exporter + @@ -78,7 +79,7 @@ - ['Node Exporter'] + ['Node Exporter','Port'] @@ -97,7 +98,12 @@ prCli prCliIP prCliSonde + prCliPort + + Port + prCliPort + diff --git a/tmpl/prometheus.yml b/tmpl/prometheus.yml index e7607f8..b2cab46 100644 --- a/tmpl/prometheus.yml +++ b/tmpl/prometheus.yml @@ -26,6 +26,9 @@ scrape_configs: %if %%cliPr.prCliSonde == 'Node Exporter' - targets: ['%%cliPr.prCliIP:9100'] %end if + %if %%cliPr.prCliSonde == 'Port' + - targets: ['%%cliPr.prCliIP:%%cliPr.prCliPort'] + %end if %end for %end if