Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Prometheus exporter for the Fastly Real-time Analytics API

License

NotificationsYou must be signed in to change notification settings

ibantxo/fastly-exporter

 
 

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).

Getting

Docker

Avaliable asmrnetops/fastly-exporter fromDocker Hub.

docker pull mrnetops/fastly-exporter

Binary

Go to thereleases page.

Source

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 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

docker run -p 8080:8080 mrnetops/fastly-exporter -token $FASTLY_API_TOKEN

Docker Compose

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.

Fastly Dashboard in Grafana

About

A Prometheus exporter for the Fastly Real-time Analytics API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go97.8%
  • Dockerfile1.3%
  • Shell0.9%

[8]ページ先頭

©2009-2025 Movatter.jp