ShellyplugExporter::Server
HTTP server for Prometheus metrics for one or more Shelly plugs.
Constants
METRICS = {
up: {help: "Last scrape of the plug succeeded (1) or failed (0)", type: "gauge"},
power: {help: "Current power drawn in watts", type: "gauge"},
overpower: {help: "Overpower drawn in watts", type: "gauge"},
total: {help: "Total power consumed in watt-minute", type: "counter"},
temperature: {help: "Plug temperature in celsius", type: "gauge"},
overtemperature: {help: "Plug overtemperature status (0 or 1)", type: "gauge"},
uptime: {help: "Plug uptime in seconds", type: "gauge"},
}
Metric families exposed on /metrics, in output order.
Constructors
Instance methods
run
Sourcestop
Source