bunnycdn_exporter

command module
v0.0.0-...-2e8dde6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

README

BunnyCDN Exporter for Prometheus

This is a simple server that scrapes BunnyCDN stats and exports them via HTTP for Prometheus consumption.

Getting Started

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.

Usage

Direct
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"
Docker

Docker Pulls

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"

Development

Go Report Card Code Climate

Building
make build
Testing

Build Status

make test

License

Apache License 2.0, see LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL