Skip to content

Commit

Permalink
prometheus: fix prometheus target url
Browse files Browse the repository at this point in the history
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 1d56818)
  • Loading branch information
dsavineau committed Jul 2, 2021
1 parent 21a6cc2 commit 6bda641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ceph-prometheus/templates/prometheus.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6bda641

Please sign in to comment.