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