Prometheus exporter powered by Cloudflare GraphQL API.
Examples:
$ export CLOUDFLARE_TOKEN='Bearer fbfa1860-410f-45d5-a9d6-c9af96cbd7d2'
$ mkdir playground
$ cp example.config.yaml playground/
# fill in the zones info in playground/example.config.yaml
$ cfexpose export playground/example.config.yaml
Required environment variables:
Optional environment variables:
Required permissions for the token:
For up-to-date information, please refer Cloudflare documentation on APL limits.
GraphQL API access restrictions by license:
free:
zones:
browserPerf1mGroups
firewallEventsAdaptive
firewallEventsAdaptiveByTimeGroups
accounts/zones:
httpRequests1hGroups
httpRequests1dGroups
pro:
firewallEventsAdaptiveGroups
healthCheckEvents
healthCheckEventsGroups
httpRequests1mGroups
loadBalancingRequests
loadBalancingRequestsGroups
business:
-
enterprise:
firewallRulePreviewGroups
httpRequests1mByColoGroups
httpRequests1dByColoGroups
synAvgPps1mGroups