Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 473 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 473 Bytes

Balena Prometheus Exporter

A simple script that pulls down Balena metrics from the API and exposes it in Prometheus format.

Usage

$ docker build -t balena-exporter .
$ docker run -d \
    --name balena-exporter \
    -p 8000:8000 \
    -e BALENA_TOKEN=<your 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.