Create the exporter
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
9a7f202f85
9 changed files with 1132 additions and 0 deletions
7
debian/default
vendored
Normal file
7
debian/default
vendored
Normal 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
11
debian/service
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue