From cd40fb0c9d1dd1a94a1956470e6c6b2b03156860 Mon Sep 17 00:00:00 2001 From: jyfou Date: Tue, 14 Oct 2025 14:03:01 +0200 Subject: [PATCH] chg systemd elasticsearch --- templates/systemd/prometheus-elasticsearch-exporter.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/systemd/prometheus-elasticsearch-exporter.service.j2 b/templates/systemd/prometheus-elasticsearch-exporter.service.j2 index 66b68ee..307ff1d 100644 --- a/templates/systemd/prometheus-elasticsearch-exporter.service.j2 +++ b/templates/systemd/prometheus-elasticsearch-exporter.service.j2 @@ -4,7 +4,7 @@ After=network.target [Service] Type=simple -ExecStart=/usr/local/bin/prometheus-elasticsearch-exporter {% if prometheus_elasticsearch_user is defined %}--es.uri="http://{{ prometheus_elasticsearch_user }}:{{ prometheus_elasticsearch_password }}@localhost:9200"{% endif %} +ExecStart=/usr/local/bin/prometheus-elasticsearch-exporter --es.uri="http://{% if prometheus_elasticsearch_user is defined %}{{ prometheus_elasticsearch_user }}:{{ prometheus_elasticsearch_password }}@{% endif %}localhost:9200" [Install] WantedBy=multi-user.target