[Unit]
Description=Prometheus Elasticsearch Exporter
After=network-online.target

[Service]
Type=simple
ExecStart=/opt/elasticsearch_exporter/elasticsearch_exporter --es.indices --es.shards --web.listen-address=127.0.0.1:9114

SyslogIdentifier=elasticsearch_exporter
Restart=always
RestartSec=1
StartLimitInterval=0

[Install]
WantedBy=multi-user.target
