- Notifications
You must be signed in to change notification settings - Fork0
A Prometheus exporter for the Fastly Real-time Analytics API
License
ibantxo/fastly-exporter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This program consumes from theFastly Real-time Analytics API and makesthe data available toPrometheus.
- Provides metrics for every service accessible to your API token.
- Adapts to Fastly service creation and deletion.
- Maintains labels dynamically (service_name).
Avaliable asmrnetops/fastly-exporter fromDocker Hub.
docker pull mrnetops/fastly-exporter
Go to thereleases page.
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 fastly Prometheus namespace -service ... Specific Fastly service ID (optional, repeatable) -subsystem rt Prometheus subsystem -token ... Fastly API token (required)VERSION 2.1.0
A valid Fastly API token is mandatory.See this link for informationon creating API tokens. The token can also be provided via the-token
flagor the FASTLY_API_TOKEN environment variable.
Optional-service
IDs can be specified to limit monitoring to specificservices. Service IDs are available at the top of yourFastly dashboard.
docker run -p 8080:8080 mrnetops/fastly-exporter -token $FASTLY_API_TOKEN
Docker Compose for a full fastly-exporter +Prometheus +Grafana + Fastly dashboard stack
FASTLY_API_TOKEN=${FASTLY_API_TOKEN} docker-compose up
Access theGrafana dashboard viahttp://localhost:3000.
About
A Prometheus exporter for the Fastly Real-time Analytics API
Resources
License
Stars
Watchers
Forks
Packages0
Languages
- Go97.8%
- Dockerfile1.3%
- Shell0.9%