summaryrefslogtreecommitdiff
path: root/app-metrics/uwsgi_exporter/files/uwsgi_exporter.service
diff options
context:
space:
mode:
Diffstat (limited to 'app-metrics/uwsgi_exporter/files/uwsgi_exporter.service')
-rw-r--r--app-metrics/uwsgi_exporter/files/uwsgi_exporter.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-metrics/uwsgi_exporter/files/uwsgi_exporter.service b/app-metrics/uwsgi_exporter/files/uwsgi_exporter.service
new file mode 100644
index 000000000000..229a1f397fe5
--- /dev/null
+++ b/app-metrics/uwsgi_exporter/files/uwsgi_exporter.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=uWSGI metrics exporter for prometheus.io
+Documentation=https://github.com/timonwong/uwsgi_exporter/
+After=network-online.target
+
+[Service]
+User=uwsgi_exporter
+Restart=on-failure
+Environment=UWSGI_EXPORTER_ARGS="--web.listen-address=:9117 --stats.uri=http://localhost:1717"
+ExecStart=/usr/bin/uwsgi_exporter $UWSGI_EXPORTER_ARGS
+ExecReload=/bin/kill -HUP $MAINPID
+TimeoutStopSec=20s
+SendSIGKILL=no
+
+[Install]
+WantedBy=multi-user.target