https://github.com/screenly/balena-prometheus-exporter
Prometheus metric exporter for Balena
https://github.com/screenly/balena-prometheus-exporter
balena iot prometheus
Last synced: 2 months ago
JSON representation
Prometheus metric exporter for Balena
- Host: GitHub
- URL: https://github.com/screenly/balena-prometheus-exporter
- Owner: Screenly
- License: mit
- Created: 2023-03-09T15:18:38.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T08:30:52.000Z (10 months ago)
- Last Synced: 2025-01-06T00:51:27.552Z (4 months ago)
- Topics: balena, iot, prometheus
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Balena Prometheus Exporter
A simple script that pulls down Balena metrics from the API and exposes it in Prometheus format.
## Usage
```bash
$ docker build -t balena-exporter .
$ docker run -d \
--name balena-exporter \
-p 8000:8000 \
-e BALENA_TOKEN= \
balena-exporter
```You should now be `curl` port 8000 to verify the result.
There's also an optional environment variable for `CRAWL_INTERVAL`, which is set to 60s by default.