summaryrefslogtreecommitdiffstats
path: root/nginx_exporter/nginx_exporter.service
diff options
context:
space:
mode:
authorGeorg2021-08-06 17:42:45 +0200
committerGeorg2021-08-06 17:42:45 +0200
commit4bd9e36ff45b2001b048a23a218e26605deac7d0 (patch)
tree4b592921aa4cbf98d75059f9223712b6ddcc1799 /nginx_exporter/nginx_exporter.service
parent1791f4374b72e5bd45dfbe6d2e543d0537f711e0 (diff)
downloadmonitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.gz
monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.tar.bz2
monitoring-4bd9e36ff45b2001b048a23a218e26605deac7d0.zip
Mass Commit 06/08/2021
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'nginx_exporter/nginx_exporter.service')
-rw-r--r--nginx_exporter/nginx_exporter.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/nginx_exporter/nginx_exporter.service b/nginx_exporter/nginx_exporter.service
new file mode 100644
index 0000000..5a974c3
--- /dev/null
+++ b/nginx_exporter/nginx_exporter.service
@@ -0,0 +1,12 @@
+[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