]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: fix prometheus jinja template
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 14 May 2021 16:08:21 +0000 (12:08 -0400)
committerSage Weil <sage@newdream.net>
Thu, 20 May 2021 23:03:34 +0000 (18:03 -0500)
The prometheus yaml file shouldn't use "tab" character but only spaces.

Fixes: https://tracker.ceph.com/issues/50717
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 2d8995e1ded22e680f778c4ef73ddd86592df21c)

src/pybind/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2

index 2b599a06b2af324e81afbb4ea829e48bfee393f3..f059e4cabc9356e9f448f091f66e742551371526 100644 (file)
@@ -37,6 +37,6 @@ scrape_configs:
 {% for haproxy in haproxy_targets %}
       - targets: [{{ haproxy.url }}]
         labels:
-         instance: '{{ haproxy.service }}'
+          instance: '{{ haproxy.service }}'
 {% endfor %}
 {% endif %}