diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-10 19:15:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-10 19:15:28 +0000 |
commit | da6a52f691ef980bab92d003d5df8f463c623af8 (patch) | |
tree | 4d89e0d5915f8a3f57c8f9c17420ba3f7b44b7b2 /net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service | |
parent | 80208fb578cf92cc308906660ca6d7860c6b2a1f (diff) |
gentoo resync : 10.03.2018
Diffstat (limited to 'net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service')
-rw-r--r-- | net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service new file mode 100644 index 000000000000..4377850f2c5c --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/files/prometheus-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=prometheus-pushgateway +Restart=on-failure +Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/prometheus-pushgateway/persistence.gob" +ExecStart=/usr/bin/pushgateway $PUSHGATEWAY_ARGS +ExecReload=/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no + +[Install] +WantedBy=multi-user.target |