cloudflare-log-collector

Grafana Dashboard

Pre-built Grafana dashboard for monitoring Cloudflare analytics collection

The dashboard tracks the full collection pipeline at a glance. Poll health panels show success/failure rates, latency histograms, and last-poll timestamps for each dataset and zone. Firewall events are broken down by action type (block, challenge, allow) with trending counters. HTTP traffic panels display request counts by method, status code, and country alongside edge response byte gauges. Loki push panels monitor push success rates and latency to catch delivery issues early. Build info and version metadata round out the overview.

Grafana Dashboard Grafana Dashboard

Metrics

The dashboard visualizes the following Prometheus metrics exposed on the configured listen address (default :9101):

MetricTypeLabelsDescription
cflog_poll_totalcounterdataset, zone, statusPoll attempts by dataset, zone, and outcome
cflog_poll_duration_secondshistogramdataset, zonePoll latency
cflog_last_poll_timestampgaugedataset, zoneUnix timestamp of last successful poll
cflog_firewall_events_totalcounteraction, zoneFirewall events by action type
cflog_http_requestsgaugemethod, status, country, zoneHTTP request counts from last poll window
cflog_http_bytesgaugetype, zoneEdge response bytes from last poll window
cflog_loki_push_totalcounterstatusLoki push attempts by outcome
cflog_loki_push_duration_secondshistogramLoki push latency
cflog_build_infogaugeversion, go_versionBuild metadata

Loki Streams

Two log streams are pushed to Loki and can be queried in Grafana:

StreamLabelsContent
Firewall events{job="cloudflare", type="firewall", zone="..."}One JSON log line per firewall event
HTTP traffic{job="cloudflare", type="http_traffic", zone="..."}One JSON log line per traffic group