From: Dimitri Savineau Date: Fri, 14 May 2021 16:08:21 +0000 (-0400) Subject: mgr/cephadm: fix prometheus jinja template X-Git-Tag: v17.1.0~1962^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2d8995e1ded22e680f778c4ef73ddd86592df21c;p=ceph.git mgr/cephadm: fix prometheus jinja template The prometheus yaml file shouldn't use "tab" character but only spaces. Fixes: https://tracker.ceph.com/issues/50717 Signed-off-by: Dimitri Savineau --- diff --git a/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 b/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 index 2b599a06b2a..f059e4cabc9 100644 --- a/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 +++ b/src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 @@ -37,6 +37,6 @@ scrape_configs: {% for haproxy in haproxy_targets %} - targets: [{{ haproxy.url }}] labels: - instance: '{{ haproxy.service }}' + instance: '{{ haproxy.service }}' {% endfor %} {% endif %}