13 lines
261 B
SYSTEMD
13 lines
261 B
SYSTEMD
|
[Unit]
|
||
|
Description=Nginx Exporter
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=nginx_exporter
|
||
|
Group=prometheus
|
||
|
Type=simple
|
||
|
ExecStart=/opt/nginx_exporter/nginx-prometheus-exporter -nginx.scrape-uri=http://127.0.0.2:8080/stub_status
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|