Export BFFH Data as Prometheus Metric.
The exporter uses the pyfabapi (Python API wrapper for FabAccess API) to access the resource list (machines) and their states and meta information (names, categories).
Sample line:
bffh_machine_state{category="Central Stairs",machine_id="zam-raum1-ecke1-lamp",machine_name="1 Lampe"} 1.0
Please see docs.fab-access.org for installation steps and how to use together with Grafana.
In case you want to use the provided Dockerfile, you can use the following environment variables to run:
POLLING_INTERVAL_SECONDS
EXPORTER_PORT
BFFH_HOST
BFFH_PORT
BFFH_USER
BFFH_PASSWORD