This is a Prometheus exporter for Cloudflare's API.
490
This is a Prometheus exporter for Cloudflare's API. It uses the GraphQL API to fetch data from your account and expose it in a format that Prometheus can scrape.
-prom-port.-zone to specify the name of the zone.HTTP
Bytes (zoneName)
Request (zoneName)
CachedBytes (zoneName)
CachedRequest (zoneName)
EncryptedBytes (zoneName)
EncryptedRequests (zoneName)
Bytes (contentType, zoneName)
Request (contentType, zoneName)
Bytes (country, zoneName)
Request (country, zoneName)
Threats (country, zoneName)
Bytes (cacheStatus, contentType, method, zoneName)
Requests (sslVersion, zoneName)
Requests (HTTPVersion, zoneName)
Requests (responseCode, zoneName)
WAF
Workers
DNS / DNS Firewall
Network
cloudflare_exporter -h
Usage of ./cloudflare_exporter:
-account string
Account ID to be fetched
-dataset string
The data source you want to export, valid values are: http, net, dns, workers, waf (default "http,waf")
-email string
The email address associated with your Cloudflare API token and account
-key string
Your Cloudflare API token
-prom-port string
Prometheus Addr (default "0.0.0.0:2112")
-zone string
Zone Name to be fetched
You can also use the following env variables instead of cli arguments:
CF_KEY : Your Cloudflare API tokenCF_EMAIL : The email address associated with your Cloudflare API token and accountCF_ACCOUNT : Account ID to be fetchedCF_ZONE : Zone Name to be fetchedCF_DATASET : The data source you want to export, valid values are: http, net, waf, workers, vnds, dnsCF_PROM_PORT : Prometheus listening addressOnce launched with valid credentials, the binary will spin a webserver on http://localhost:2112/metrics exposing the metrics received from Cloudflare's GraphQL endpoint.
Repository: https://github.com/neverlless/cloudflare_exporter
Content type
Image
Digest
sha256:4285c8630…
Size
7 MB
Last updated
over 2 years ago
docker pull neverlless/cloudflare-prometheus-exporter