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
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ The exporter can be configured using env variables or command flags.
67
67
|`SCRAPE_INTERVAL`| scrape interval in seconds (will query cloudflare every SCRAPE_INTERVAL seconds), default `60`|
68
68
|`METRICS_DENYLIST`| (Optional) cloudflare-exporter metrics to not export, comma delimited list of cloudflare-exporter metrics. If not set, all metrics are exported |
69
69
|`ENABLE_PPROF`| (Optional) enable pprof profiling endpoints at `/debug/pprof/`. Accepts `true` or `false`, default `false`. **Warning**: Only enable in development/debugging environments |
70
+
|`ENABLE_EDGE_ERRORS_BY_PATH`| (Optional) enable edge errors by path metric. Accepts `true` or `false`, default `false`. See [Edge Errors by Path Metric](#edge-errors-by-path-metric-opt-in)|
70
71
|`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. |
71
72
|`LOG_LEVEL`| Set loglevel. Options are error, warn, info, debug. default `error`|
72
73
@@ -86,6 +87,7 @@ Corresponding flags:
86
87
-scrape_interval=60: scrape interval in seconds, defaults to 60
87
88
-metrics_denylist="": cloudflare-exporter metrics to not export, comma delimited list
88
89
-enable_pprof=false: enable pprof profiling endpoints at /debug/pprof/
90
+
-enable_edge_errors_by_path=false: enable edge errors by path metric (high cardinality, opt-in)
@@ -119,6 +121,7 @@ Note: `ZONE_<name>` configuration is not supported as flag.
119
121
# HELP cloudflare_zone_requests_status_country_host Count of requests for zone per edge HTTP status per country per host
120
122
# HELP cloudflare_zone_requests_browser_map_page_views_count Number of successful requests for HTML pages per zone
121
123
# HELP cloudflare_zone_requests_total Number of requests for zone
124
+
# HELP cloudflare_zone_edge_errors_by_path Number of edge errors (4xx and 5xx) by request path
122
125
# HELP cloudflare_zone_threats_country Threats per zone per country
123
126
# HELP cloudflare_zone_threats_total Threats per zone
124
127
# HELP cloudflare_zone_uniques_total Uniques per zone
@@ -131,6 +134,14 @@ Note: `ZONE_<name>` configuration is not supported as flag.
131
134
# HELP cloudflare_r2_storage_total_bytes Total storage used by R2
132
135
```
133
136
137
+
### Edge Errors by Path Metric (Opt-in)
138
+
139
+
The `cloudflare_zone_edge_errors_by_path` metric tracks edge errors (4xx/5xx) by request path. This enables path-based filtering in alerts to exclude known-noisy endpoints while catching real issues.
140
+
141
+
**Disabled by default** due to high cardinality. Enable with `ENABLE_EDGE_ERRORS_BY_PATH=true`.
142
+
143
+
Paths are normalized to reduce cardinality (e.g., `/users/123` → `/users/:id`, UUIDs → `:uuid`).
144
+
134
145
## Helm chart repository
135
146
136
147
To deploy the exporter into Kubernetes, we recommend using our manager Helm repository:
0 commit comments