This is a simple server that scrapes BunnyCDN stats and exports them via HTTP for Prometheus consumption.
To run it:
./bunnycdn_exporter [flags]
Help on flags:
./bunnycdn_exporter --help
For more information check the source code documentation. All of the core developers are accessible via the Prometheus Developers mailinglist.
bunnycdn_exporter --bunnycdn.api-key="<API_KEY>"
Or by using an environment variable for setting the API key:
export BUNNYCDN_API_KEY="<API_KEY>"
bunnycdn_exporter"
To run the bunnycdn exporter as a Docker container, run:
docker run -p 9584:9584 permutive/bunnycdn-exporter --bunnycdn.api-key="<API_KEY>"
alternatively, the API key can be passed as an environment variable:
docker run -p 9584:9584 -e BUNNYCDN_API_KEY="<API_KEY>" permutive/bunnycdn-exporter"
make build
make test
Apache License 2.0, see LICENSE.