This program consumes from the Fastly Real-time Analytics API and makes the data available to Prometheus.
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
USAGE
fastly-exporter [flags]
FLAGS
-debug false log debug information
-endpoint http://127.0.0.1:8080/metrics Prometheus /metrics endpoint
-namespace ... Prometheus namespace
-service ... Fastly service ID (repeatable)
-subsystem ... Prometheus subsystem
-token ... Fastly API token
VERSION
1.0.0
A valid API -token and at least one -service ID are mandatory. Your service ID is available at the top of your Fastly dashboard. See this link for information on creating API tokens.