chg systemd elasticsearch

This commit is contained in:
2025-10-14 14:03:01 +02:00
parent 57e6341eac
commit cd40fb0c9d

View File

@@ -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