1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Prometheus NginxLog Exporter After=network.target [Service] ExecStart=/usr/bin/prometheus-nginxlog-exporter -config-file "/etc/prometheus/nginxlog.yml" Restart=always ProtectSystem=full CapabilityBoundingSet= [Install] WantedBy=multi-user.target