mirror of
https://gitlab.com/fabinfra/fabaccess/prometheus-exporter.git
synced 2025-04-22 04:16:27 +02:00
Compare commits
No commits in common. "faba7709300c16ac1a2a4a99ac6d56ffa5b30f53" and "3336126ceb20e382e2de6ebc4a63b658c9fdaf4b" have entirely different histories.
faba770930
...
3336126ceb
28
README.md
28
README.md
@ -1,23 +1,11 @@
|
|||||||
# Prometheus Exporter
|
# Prometheus Exporter
|
||||||
|
|
||||||
Export BFFH Data as Prometheus Metric.
|
Export BFFH Data as Prometheus Metric
|
||||||
|
|
||||||
The exporter uses the [pyfabapi](https://docs.fab-access.org/books/schnittstellen-und-apis/page/fabaccess-api#bkmrk-pyfabapi) (Python API wrapper for FabAccess API) to access the resource list (machines) and their states and meta information (names, categories).
|
# Env Variables
|
||||||
|
* POLLING_INTERVAL_SECONDS = 5
|
||||||
Sample line:
|
* EXPORTER_PORT = 9000
|
||||||
```
|
* BFFH_HOST = localhost
|
||||||
bffh_machine_state{category="Central Stairs",machine_id="zam-raum1-ecke1-lamp",machine_name="1 Lampe"} 1.0
|
* BFFH_PORT = 59661
|
||||||
```
|
* BFFH_USER = Admin1
|
||||||
|
* BFFH_PASSWORD = secret
|
||||||
# Installation & Documentation
|
|
||||||
Please see [docs.fab-access.org](https://docs.fab-access.org/books/schnittstellen-und-apis/page/monitoring-prometheus-loki-und-grafana#bkmrk-installation-von-fab) for installation steps and how to use together with Grafana.
|
|
||||||
|
|
||||||
## Installation with Docker
|
|
||||||
In case you want to use the provided Dockerfile, you can use the following environment variables to run:
|
|
||||||
|
|
||||||
* `POLLING_INTERVAL_SECONDS` = 5
|
|
||||||
* `EXPORTER_PORT` = 9000
|
|
||||||
* `BFFH_HOST` = localhost
|
|
||||||
* `BFFH_PORT` = 59661
|
|
||||||
* `BFFH_USER` = Admin1
|
|
||||||
* `BFFH_PASSWORD` = secret
|
|
2
pyfabapi
2
pyfabapi
@ -1 +1 @@
|
|||||||
Subproject commit 7a4473f39a989b926eea0185fa665021baed6988
|
Subproject commit 286aca04723a6bca0dbdb4cc6928650f8764bb34
|
@ -1,6 +1,6 @@
|
|||||||
asyncio-mqtt
|
asyncio-mqtt
|
||||||
pycapnp==1.3.0
|
pycapnp
|
||||||
prometheus_client
|
prometheus_client
|
||||||
requests
|
requests
|
||||||
prometheus-async
|
prometheus-async
|
||||||
aiohttp
|
aiohttp
|
Loading…
x
Reference in New Issue
Block a user