Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schumacherfm/prometheus_shelly_exporter
Prometheus Shelly Exporter via MQTT
https://github.com/schumacherfm/prometheus_shelly_exporter
grafana mqtt prometheus shelly
Last synced: about 1 month ago
JSON representation
Prometheus Shelly Exporter via MQTT
- Host: GitHub
- URL: https://github.com/schumacherfm/prometheus_shelly_exporter
- Owner: SchumacherFM
- License: apache-2.0
- Created: 2023-12-03T12:37:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-10T12:42:37.000Z (9 months ago)
- Last Synced: 2024-11-15T21:46:06.471Z (about 1 month ago)
- Topics: grafana, mqtt, prometheus, shelly
- Language: Go
- Homepage:
- Size: 531 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prometheus Shelly Exporter and Grafana integration
This exporter exports some metrics from Shelly to Prometheus.
Tested with:
- Shelly H&T - only humidity and temperature
- WIP (1PM and 3EM)
## Build
go get github.com/SchumacherFM/prometheus_shelly_exporter/
cd $GOPATH/src/github.com/SchumacherFM/prometheus_shelly_exporter
go install## Docker
$ docker pull ghcr.io/schumacherfm/shelly-exporter:latest
## Execution
Usage:
$GOPATH/bin/prometheus_shelly_exporter -h
$ go run main.go
NAME:
main - Converts received data from MQTT towards prometheus format
USAGE:
main [global options] command [command options] [arguments...]
COMMANDS:
debug inspect topics and their data
prom forwards the mqtt data towards prometheus
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--mqtt-url value [ --mqtt-url value ] mqtt://hostname:port [$MQTT_HOSTS]
--mqtt-user value mqtt username [$MQTT_USERNAME]
--mqtt-pass value mqtt password [$MQTT_PASSWORD]
--topic value, -t value [ --topic value, -t value ] MQTT Topics http://www.steves-internet-guide.com/understanding-mqtt-topics/ (default: "shellies/+/info")
--verbose (default: false)
--help, -h show help
## Grafana Dashboard
...