Create the exporter
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
finga 2022-05-07 21:59:31 +02:00
commit 9a7f202f85
9 changed files with 1132 additions and 0 deletions

7
debian/default vendored Normal file
View file

@ -0,0 +1,7 @@
ARGS=""
# dht11-exporter supports the following options:
# -a, --address <ADDRESS> The IPv4 or IPv6 address where the metrics are served [default:
# 127.0.0.1]
# -g, --gpio <GPIO> The GPIO pin of the DHT11 data line [default: 4]
# -p, --port <PORT> The port where the metrics are served [default: 9112]

11
debian/service vendored Normal file
View file

@ -0,0 +1,11 @@
[Unit]
Description=DHT11 sensor exporter
[Service]
Group=gpio
Restart=always
EnvironmentFile=/etc/default/dht11-exporter
ExecStart=/usr/bin/dht11-exporter $ARGS
[Install]
WantedBy=multi-user.target