Prometheus pagespeed exporter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
collector
exporter
googleapi
.gitignore Configure CI to test, install and publish Jun 21, 2017
.travis.yml
Dockerfile
LICENSE
Makefile
README.md
VERSION
glide.yaml
pagespeed_exporter.go

README.md

Pagespeed Exporter

Travis CI

Prometheus exporter for google pagespeed metrics

Building And Running

Building

make

Examples

To run pagespeed exporter we need to obtain the google api key for the pagespeed. Instructions how to create a key for pagespeed can be found here

pagespeed_exporter

pagespeed_exporter -api-key {KEY} -targets https://google.com,https://prometheus.io -listener :80

Exporter configuration

Flag Variable Description Default Required
-api-key PAGESPEED_API_KEY sets the google API key used for pagespeed True
-targets PAGESPEED_TARGETS comma separated list of targets to measure True
-interval PAGESPEED_INTERVAL check interval (e.g. 3s 4h 5d ...) 1h False
-listener PAGESPEED_LISTENER sets the listener address for the exporters :9271 False

Docker

docker run -p "9271:9271" --rm foomo/pagespeed-exporter -api-key {KEY} -targets https://google.com,https://prometheus.io

or

docker run -p "9271:9271" --rm \
    --env PAGESPEED_API_KEY={KEY} \
    --env PAGESPEED_TARGETS=https://google.com,https://prometheus.io \
    foomo/pagespeed-exporter