From a4a8fed358ea6a0acacb8cc68ee3ab24f450617a Mon Sep 17 00:00:00 2001 From: hackens server Date: Fri, 29 Apr 2022 15:09:56 +0200 Subject: [PATCH] monitoring de la poubelle --- hosts/hackens-org/prometheus/config.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/hackens-org/prometheus/config.yaml b/hosts/hackens-org/prometheus/config.yaml index 2914a29..ed84f2d 100644 --- a/hosts/hackens-org/prometheus/config.yaml +++ b/hosts/hackens-org/prometheus/config.yaml @@ -2,7 +2,7 @@ mqtt: # The MQTT broker to connect to server: tcp://new.hackens.org:1883 # The Topic path to subscribe to. Be aware that you have to specify the wildcard, if you want to follow topics for multiple sensors. - topic_path: kfet/open + topic_path: +/+ # The MQTT QoS level qos: 0 metric_per_topic_config: @@ -21,3 +21,11 @@ metrics: help: K-FĂȘt opening state # The prometheus type for this metric. Valid values are: "gauge" and "counter" type: gauge + # The name of the metric in prometheus + - prom_name: trash_filling + # The name of the metric in a MQTT JSON message + mqtt_name: trash + # The prometheus help text for this metric + help: Hackens trash filling state + # The prometheus type for this metric. Valid values are: "gauge" and "counter" + type: gauge