From 04c18710acd135797c39bb97650ddd021f57c3d0 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 c03b26caf..a6ba3ba29 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: