[Unit]
Description=NGINX Prometheus Exporter for NGINX and NGINX Plus.
Documentation=https://github.com/nginxinc/nginx-prometheus-exporter
After=network.target

[Service]
EnvironmentFile=-/etc/default/nginx_exporter
User=prometheus
ExecStart=/usr/bin/nginx_exporter $NGINX_EXPORTER_OPTS
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target