From b54858096914c83894ef6ce108125f81c7d951d6 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Sat, 19 Nov 2022 11:57:28 +0100 Subject: [PATCH] add apower metric --- nbit-mqtt/mqtt2prometheus-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nbit-mqtt/mqtt2prometheus-config.yaml b/nbit-mqtt/mqtt2prometheus-config.yaml index 7fb0261..fff24bc 100644 --- a/nbit-mqtt/mqtt2prometheus-config.yaml +++ b/nbit-mqtt/mqtt2prometheus-config.yaml @@ -21,3 +21,13 @@ metrics: # A map of string to string for constant labels. This labels will be attached to every prometheus metric const_labels: sensor_type: shelly + - prom_name: apower + # The name of the metric in a MQTT JSON message + mqtt_name: params.switch:0.apower + # The prometheus help text for this metric + help: current power + # The prometheus type for this metric. Valid values are: "gauge" and "counter" + type: gauge + # A map of string to string for constant labels. This labels will be attached to every prometheus metric + const_labels: + sensor_type: shelly