prometheus-upsc-exporter

rather basic upsc prometheus exporter
git clone https://git.e1e0.net/prometheus-upsc-exporter.git
Log | Files | Refs | README | LICENSE

commit 844e12592f7ddaaf8eb460fb35423dd7668dd53e
parent 627a6ec3dc15aa1022270d02c0867f7c90800fa4
Author: Paco Esteban <paco@e1e0.net>
Date:   Fri, 17 Jan 2020 17:31:06 +0100

add systemd service example

Diffstat:
MREADME | 3+++
Aupsc-exporter.service | 14++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/README b/README @@ -10,6 +10,9 @@ it at your own risk. Port and ups string can be configured via flags. See man page for details. +There's an example service file for systemd(1) on the root of the +project. + Binary files for raspberry pi available at https://e1e0.net/repo/ Use signify(1) or minisign to verify the hashes. Find the signature public key at: https://e1e0.net/signify_key.pub diff --git a/upsc-exporter.service b/upsc-exporter.service @@ -0,0 +1,14 @@ +[Unit] +Description=prometheus upsc exporter daemon +After=network.target + +[Service] +Type=simple +User=upsc_exporter +Group=upsc_exporter +ExecStart=/usr/local/bin/upsc-exporter -p 8081 -ups ups@localhost +KillMode=process +Restart=on-failure + +[Install] +WantedBy=multi-user.target