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