add elasticsearch configuration and systemd

This commit is contained in:
jean-yves.fournier
2025-05-19 12:00:07 +02:00
parent 0799a41a01
commit 4903dc467d
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[Unit]
Description=Prometheus Elasticsearch Exporter
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 %}
[Install]
WantedBy=multi-user.target