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
-services ... Comma separated string of Fastly services
-subsystem ... Prometheus subsystem
-token ... Fastly API token
VERSION
0.0.1
The -services and -token flags are mandatory. Your service ID(s) are available at the top of your Fastly dashboard. See this link for information on creating API tokens.