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: