11 lines
363 B
Django/Jinja
11 lines
363 B
Django/Jinja
[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
|