summaryrefslogtreecommitdiff
blob: 03ae0a4427724cde44a7d94f08dbd38a30fe338a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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