| Crates.io | shellymetry |
| lib.rs | shellymetry |
| version | 0.1.0 |
| created_at | 2021-06-28 07:36:00.849782+00 |
| updated_at | 2021-06-28 07:36:00.849782+00 |
| description | Export shelly.cloud data to Prometheus |
| homepage | |
| repository | https://github.com/dmathieu/shellymetry |
| max_upload_size | |
| id | 415684 |
| size | 68,401 |
Fetch data from shelly.cloud devices, and expose it as Prometheus metrics.
For now, you need to pull the repository locally, and build it.
With rust installed:
cargo build --release
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.