diff options
Diffstat (limited to 'app-metrics/pushgateway/files/pushgateway.service')
-rw-r--r-- | app-metrics/pushgateway/files/pushgateway.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app-metrics/pushgateway/files/pushgateway.service b/app-metrics/pushgateway/files/pushgateway.service new file mode 100644 index 000000000000..3915fdb5b337 --- /dev/null +++ b/app-metrics/pushgateway/files/pushgateway.service @@ -0,0 +1,16 @@ +[Unit] +Description=Prometheus exporter for ephemereal jobs +Documentation=https://prometheus.io/docs/instrumenting/pushing/ +After=network-online.target + +[Service] +User=pushgateway +Restart=on-failure +Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/pushgateway/persistence.gob" +ExecStart=/usr/bin/pushgateway $PUSHGATEWAY_ARGS +ExecReload=/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no + +[Install] +WantedBy=multi-user.target |