Skip to content

Instantly share code, notes, and snippets.

@bejean
Created October 17, 2019 06:51
Show Gist options
  • Save bejean/772356b0b878c1aca02b7f4dc6262172 to your computer and use it in GitHub Desktop.
Save bejean/772356b0b878c1aca02b7f4dc6262172 to your computer and use it in GitHub Desktop.
Prometheus solr-exporter.service
[Unit]
Description=Prometheus Solr Exporter
After=network-online.target
[Service]
User=solr
Restart=on-failure
#Change this line if you download the
#Prometheus on different path user
ExecStart=/opt/solr/solr/contrib/prometheus-exporter/bin/solr-exporter -p 9854 -z zk1:2181,zk2:2181,zk3:2181 -f /opt/solr/solr/contrib/prometheus-exporter/conf/solr-exporter-config.xml -n 16
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment