Skip to content

A Prometheus exporter for the Fastly Real-time Analytics API

License

Notifications You must be signed in to change notification settings

oferzi23/fastly-exporter

 
 

Repository files navigation

fastly-exporter Latest Release Travis CI

This program consumes from the Fastly Real-time Analytics API and makes the data available to Prometheus.

Getting

Go to the releases page, or, if you have a working Go installation, you can install the latest revision from HEAD.

go get github.com/peterbourgon/fastly-exporter

Using

USAGE
  fastly-exporter [flags]

FLAGS
  -debug false                             Log debug information
  -endpoint http://127.0.0.1:8080/metrics  Prometheus /metrics endpoint
  -namespace ...                           Prometheus namespace (optional)
  -service ...                             Specific Fastly service ID (optional, repeatable)
  -subsystem ...                           Prometheus subsystem (optional)
  -token ...                               Fastly API token (required)

VERSION
  2.0.0

Docker implementation

build image using Dockerfile with:

docker build -t fastly-exporter:latest .

and run the container with:

docker run -p <host port>:<container port>  -e FASTLY_API_TOKEN=<token> -e FASTLY_EXPORTER_PORT=<container port> -e FASTLY_EXPORTER_SERVICES=<comma seperated list of service ids> -e FASTLY_NAMESPACE=<namespace for fastly> fastly_exporter:latest

A valid Fastly API -token is mandatory. See this link for information on creating API tokens. Providing individual -service IDs is optional. Service IDs are available at the top of your Fastly dashboard.

About

A Prometheus exporter for the Fastly Real-time Analytics API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Shell 1.2%
  • Dockerfile 0.4%