From 08f840d0bcc44bfb88d80f50cf45f265c2f6b157 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Wed, 15 Apr 2020 00:04:03 +0200 Subject: [PATCH] Monitor thot mtail --- .../templates/prometheus/prometheus.yml.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/prometheus/templates/prometheus/prometheus.yml.j2 b/roles/prometheus/templates/prometheus/prometheus.yml.j2 index 0f1b6c67..8dc04497 100644 --- a/roles/prometheus/templates/prometheus/prometheus.yml.j2 +++ b/roles/prometheus/templates/prometheus/prometheus.yml.j2 @@ -103,6 +103,18 @@ scrape_configs: - target_label: __address__ replacement: 127.0.0.1:9115 + - job_name: mtail + static_configs: + - targets: ["thot.adm.crans.org"] + relabel_configs: + # Do not put :3903 in instance name, rather here + - source_labels: [__address__] + target_label: instance + - source_labels: [instance] + target_label: __address__ + replacement: '$1:3903' + + - job_name: django scheme: https static_configs: