Skip to content

Cloudflare Prometheus Exporter

Active
lablabs/cloudflare-exporter

A Prometheus exporter for Cloudflare analytics — per-zone traffic, colocation and Worker metrics — with a ready-made Grafana dashboard, Docker image and Helm chart.

View on GitHub
Stars
433
Forks
166
Watchers
433
Open issues
73

Overview

This Prometheus exporter exposes Cloudflare Analytics dashboard data on a per-zone basis, as well as Worker metrics. It can also break zone metrics down by Cloudflare colocation (data center). A public Grafana dashboard is available.

Authentication

Use a scoped API token (preferred) or a legacy API key. Zone / Analytics:Read is needed for zone metrics, and Account / Account Analytics:Read for Worker and account usage metrics.

Running it

docker run --rm -p 8080:8080 -e CF_API_TOKEN=${CF_API_TOKEN} ghcr.io/lablabs/cloudflare_exporter

Limit it to specific zones with CF_ZONES, set FREE_TIER=true for free-plan zones, or install it on Kubernetes with the Helm chart.

Similar open-source projects, ranked by shared categories and tags.

All Monitoring projects →