Skip to content

Rust script to periodically get energy information from a ShellyPlug Plus S and expose it as Prometheus metrics

Notifications You must be signed in to change notification settings

graipher/shellyplug-exporter-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShellyPlug Exporter

Periodically get information from a Shelly Plus Plug S and publish it as Prometheus metrics.

Exposed metrics

Output button state, power, voltage, current, total energy, temperature (in °C), updates available and last update time.

How to run

Build and run with Docker:

docker build -t shellyplug-exporter .
docker run -it --rm \
    -e SHELLYPLUG_URL=host/ip_address \
    -e PORT=9185 \
    -e PERIOD=60 \
    shellyplug-exporter

About

Rust script to periodically get energy information from a ShellyPlug Plus S and expose it as Prometheus metrics

Resources

Stars

Watchers

Forks

Packages