You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Required authentication scopes:
34
34
Workers included in authentication scope)
35
35
-`Zone/Firewall Services:Read` is required to fetch zone rule name for `cloudflare_zone_firewall_events_count` metric
36
36
-`Account/Account Rulesets:Read` is required to fetch account rule name for `cloudflare_zone_firewall_events_count` metric
37
+
-`Account:Load Balancing: Monitors and Pools:Read` is required to fetch pools origin health status `cloudflare_pool_origin_health_status` metric
37
38
38
39
To authenticate this way, only set `CF_API_TOKEN` (omit `CF_API_EMAIL` and `CF_API_KEY`)
39
40
@@ -57,15 +58,16 @@ The exporter can be configured using env variables or command flags.
57
58
|`CF_API_TOKEN`| API authentication token (recommended before API key + email. Version 0.0.5+. see <https://developers.cloudflare.com/analytics/graphql-api/getting-started/authentication/api-token-auth>) |
58
59
|`CF_ZONES`| (Optional) cloudflare zones to export, comma delimited list of zone ids. If not set, all zones from account are exported |
59
60
|`CF_EXCLUDE_ZONES`| (Optional) cloudflare zones to exclude, comma delimited list of zone ids. If not set, no zones from account are excluded |
61
+
|`CF_TIMEOUT`| Set cloudflare request timeout. Default 10 seconds |
60
62
|`FREE_TIER`| (Optional) scrape only metrics included in free plan. Accepts `true` or `false`, default `false`. |
61
63
|`LISTEN`| listen on addr:port (default `:8080`), omit addr to listen on all interfaces |
62
64
|`METRICS_PATH`| path for metrics, default `/metrics`|
63
65
|`SCRAPE_DELAY`| scrape delay in seconds, default `300`|
64
66
|`SCRAPE_INTERVAL`| scrape interval in seconds (will query cloudflare every SCRAPE_INTERVAL seconds), default `60`|
|`METRICS_DENYLIST`| (Optional) cloudflare-exporter metrics to not export, comma delimited list of cloudflare-exporter metrics. If not set, all metrics are exported |
67
68
|`ENABLE_PPROF`| (Optional) enable pprof profiling endpoints at `/debug/pprof/`. Accepts `true` or `false`, default `false`. **Warning**: Only enable in development/debugging environments |
68
69
|`ZONE_<NAME>`|`DEPRECATED since 0.0.5` (optional) Zone ID. Add zones you want to scrape by adding env vars in this format. You can find the zone ids in Cloudflare dashboards. |
70
+
|`LOG_LEVEL`| Set loglevel. Options are error, warn, info, debug. default `error`|
69
71
70
72
Corresponding flags:
71
73
@@ -75,14 +77,15 @@ Corresponding flags:
75
77
-cf_api_token="": cloudflare api token (version 0.0.5+, preferred)
76
78
-cf_zones="": cloudflare zones to export, comma delimited list
77
79
-cf_exclude_zones="": cloudflare zones to exclude, comma delimited list
0 commit comments