hackens-org-configurations/hosts/hackens-org/monitoring/config.yaml

32 lines
1.2 KiB
YAML
Raw Normal View History

2022-04-25 00:53:18 +02:00
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.
2022-04-29 15:09:56 +02:00
topic_path: +/+
2022-04-25 00:53:18 +02:00
# The MQTT QoS level
qos: 0
metric_per_topic_config:
metric_name_regex: "(?P<deviceid>.*)/(?P<metricname>.*)"
cache:
# Timeout. Each received metric will be presented for this time if no update is send via MQTT.
# Set the timeout to -1 to disable the deletion of metrics from the cache. The exporter presents the ingest timestamp
# to prometheus.
timeout: 24h
metrics:
# The name of the metric in prometheus
- prom_name: keft_open
# The name of the metric in a MQTT JSON message
mqtt_name: open
# The prometheus help text for this metric
help: K-Fêt opening state
# The prometheus type for this metric. Valid values are: "gauge" and "counter"
type: gauge
2022-04-29 15:09:56 +02:00
# 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