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: