From 3fd380f557862d067e3388b7ff627d34b5c5143c Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 12 Jan 2018 18:06:08 +0100 Subject: [PATCH] library/roles/prometheus/templates/prometheus.yml.j2: Put it in line with the running version, waiting for a real template here. --- prometheus/templates/prometheus.yml.j2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/prometheus/templates/prometheus.yml.j2 b/prometheus/templates/prometheus.yml.j2 index d9c65587..2cade5ca 100644 --- a/prometheus/templates/prometheus.yml.j2 +++ b/prometheus/templates/prometheus.yml.j2 @@ -26,4 +26,13 @@ scrape_configs: # scheme defaults to 'http'. static_configs: - - targets: ['localhost:9090'] + - targets: ['localhost:9090'], 'localhost:9100'] + labels: + group: 'Prometheus Server' + + - job_name: 'node' + + static_configs: + - targets: [ 'localhost:9100'] + labels: + group: 'node'