From 2783b27c4ce58764519099c7dcf065ee2ff3b9fc Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Wed, 13 Sep 2017 14:28:34 +0000 Subject: [PATCH] filter nomad services for only http --- integrations/prometheus/prometheus.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integrations/prometheus/prometheus.yml b/integrations/prometheus/prometheus.yml index 80ce39c94..d0c336d55 100644 --- a/integrations/prometheus/prometheus.yml +++ b/integrations/prometheus/prometheus.yml @@ -9,6 +9,11 @@ scrape_configs: - server: 'localhost:8500' services: ['nomad-client', 'nomad'] + relabel_configs: + - source_labels: ['__meta_consul_tags'] + regex: '(.*)http(.*)' + action: keep + scrape_interval: 5s metrics_path: /metrics