GotSmart collects information from the Dutch SlimmeMeter (translated as Smart Meter) and exports them as Prometheus metrics.
go get github.com/basvdlei/gotsmart
Specify the serial device that is connected with the Smart Meter.
gotsmart -device /dev/ttyS0
Setup with Docker
docker build -t gotsmart .
Make sure to add the serial device that is connected with the Smart Meter to the container. (ttyS0, ttyUSB0, ttyAMA0, etc)
docker run -d -p 8080:8080 --device /dev/ttyS0:/dev/ttyS0 gotsmart
By default gotsmart listens on port 8080 and exposes the metrics under