systemd prometheus service

This commit is contained in:
Martin/Geno 2019-10-17 07:26:26 +02:00
parent 9877bdf22b
commit e3d69af688
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
[Unit]
Description=ejabberd prometheus exporter
[Service]
Type=simple
User=nobody
User=group
ExecStart=/opt/ejabberd-metrics/prometheus.py
Restart=always
RestartSec=5s
Environment=PATH=/usr/bin:/usr/local/bin
[Install]
WantedBy=multi-user.target