From 1a33f1eb197999a34d35a98cf2f42dbc7140bc8b Mon Sep 17 00:00:00 2001 From: Gustavo Coelho Date: Fri, 15 May 2020 16:58:54 -0300 Subject: [PATCH] Relabel prometheus metrics Signed-off-by: Gustavo Coelho --- prometheus.yml.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prometheus.yml.tmpl b/prometheus.yml.tmpl index 18b0da1..34aa67f 100644 --- a/prometheus.yml.tmpl +++ b/prometheus.yml.tmpl @@ -11,6 +11,11 @@ rule_files: scrape_configs: - job_name: 'prometheus' + metric_relabel_configs: + - source_labels: ["__name__"] + regex: "prometheus_.*" + target_label: "instance" + replacement: "{{.prometheusServer}}" static_configs: - targets: ['localhost:9090']