Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rednaks/goatmo
dht22 prometheus exporter written in golang
https://github.com/rednaks/goatmo
dht22 golang prometheus
Last synced: about 2 months ago
JSON representation
dht22 prometheus exporter written in golang
- Host: GitHub
- URL: https://github.com/rednaks/goatmo
- Owner: rednaks
- Created: 2022-02-11T22:22:21.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T14:25:55.000Z (almost 3 years ago)
- Last Synced: 2024-04-15T12:22:59.527Z (9 months ago)
- Topics: dht22, golang, prometheus
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## description
Prometheus exporter for the DHT22 written in go.## usage
In order to access GPIO on rasberry pi you need to execute the exporter as root.
```bash
./goatmo --help-dht-pin int
Pin where DHT is plugged in (default 4)
-listen-address string
The address to listen on for HTTP requests. (default "0.0.0.0:9000")
-metric-prefix string
The prefix wanted for the metric (default "goatmo")```
example:
```bash
sudo ./goatmo -listen-address 0.0.0.0:9100 -metric-prefix home
```### metrics
Two gauge metrics are available `goatmo_room_temperature` and `goatmo_room_humidity````
# HELP goatmo_room_humidity Room Humidity
# TYPE goatmo_room_humidity gauge
goatmo_room_humidity 59.20000076293945
# HELP goatmo_room_temperature Room Temperature
# TYPE goatmo_room_temperature gauge
goatmo_room_temperature 18.100000381469727
```# license MIT