From 20fcf419a7e7287415a34227769dd19f5f20b2a1 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Wed, 20 Mar 2024 20:32:06 +0100 Subject: [PATCH] monitoring: Add mqtt exporter rule for Shelly plugs --- roles/monitoring/templates/mqtt_exporter_config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/monitoring/templates/mqtt_exporter_config.yaml b/roles/monitoring/templates/mqtt_exporter_config.yaml index 3b04173..2ee7944 100644 --- a/roles/monitoring/templates/mqtt_exporter_config.yaml +++ b/roles/monitoring/templates/mqtt_exporter_config.yaml @@ -35,3 +35,7 @@ export: - subscribe: bitlair/collectd/bitlair-5406/snmp/if_octets-traffic.D15 metric_name: bitlair_internet_tx value_regex: "^.+:.+:([\\d\\.]+)" + + - subscribe: bitlair/power/shelly/+num/status/switch:0 + metric_name: bitlair_power_shelly + value_json: .apower