From 04b1665e5ea80b1190cea9a17bd265e02ba402d1 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Fri, 2 Jul 2021 09:13:43 -0400 Subject: [PATCH] prometheus: fix prometheus target url The prometheus service isn't binding on localhost. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1933560 Signed-off-by: Dimitri Savineau (cherry picked from commit 1d56818658ebba36cce5f93fa4c5e2bcac310561) --- roles/ceph-prometheus/templates/prometheus.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-prometheus/templates/prometheus.yml.j2 b/roles/ceph-prometheus/templates/prometheus.yml.j2 index 6c79b15ab..6181dc13b 100644 --- a/roles/ceph-prometheus/templates/prometheus.yml.j2 +++ b/roles/ceph-prometheus/templates/prometheus.yml.j2 @@ -8,7 +8,7 @@ rule_files: scrape_configs: - job_name: 'prometheus' static_configs: - - targets: ['localhost:{{ prometheus_port }}'] + - targets: ['{{ grafana_server_addr }}:{{ prometheus_port }}'] - job_name: 'ceph' honor_labels: true static_configs: