Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Latest commit

 

History

History
42 lines (32 loc) · 767 Bytes

File metadata and controls

42 lines (32 loc) · 767 Bytes

ShellyMetry

Fetch data from shelly.cloud devices, and expose it as Prometheus metrics.

Usage

For now, you need to pull the repository locally, and build it.

With rust installed:

cargo install shellymetry

You then need a shellymetry.json file with the following content:

{
	"server_port": 1304,
	"refresh_interval": 15,
	"devices": [
		{
			"kind": "plug",
			"name": "D9CFDD",
			"labels": {
				"name": "office"
			}
		}
	],
	"otlp_endpoint": "<endpoint>", // Optional OTLP endpoint to send traces to
	"otlp_headers": { } // Optional OTLP headers to send with the traces (for authentication)
}

If OTLP isn't configured, traces will be sent to stdout.

Run the process:

shellymetry -c shellymetry.json