]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
prometheus: fix prometheus target url
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 2 Jul 2021 13:13:43 +0000 (09:13 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 2 Jul 2021 18:37:34 +0000 (14:37 -0400)
The prometheus service isn't binding on localhost.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1933560
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 1d56818658ebba36cce5f93fa4c5e2bcac310561)

roles/ceph-prometheus/templates/prometheus.yml.j2

index 6c79b15abe05ae6a9384058afdf6cfe70002ba01..6181dc13b0c8908b7fefbbd67ecd239473b251a0 100644 (file)
@@ -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: