Skip to main content
Track DNS performance, traffic patterns, cache efficiency, and threat activity over time.
Category: Monitoring · Auth: API token · Metrics: 25

Prerequisites

You need two things from your Cloudflare account:
  1. API Token — Go to Cloudflare Dashboard → API Tokens, create a token with Zone Analytics:Read permission.
  2. Zone ID — Found on the Overview tab of your domain in the Cloudflare dashboard.

Configuration

Go to Settings → Integrations → Cloudflare and enter your API token and zone ID.

Entities

Pull everything with all, or pick specific categories:
EntityDescription
dnsDNS query analytics
trafficHTTP traffic metrics
securityFirewall and threat metrics
performanceCache and status code metrics
allAll of the above

Metrics

DNS (8)

MetricDescription
dns_queries_totalTotal DNS queries (24h)
dns_queries_uncachedUncached DNS queries (24h)
dns_queries_staleStale DNS queries (24h)
dns_response_time_avgAverage DNS response time in ms (24h)
dns_response_time_medianMedian DNS response time in ms (24h)
dns_response_time_p90P90 DNS response time in ms (24h)
dns_response_time_p99P99 DNS response time in ms (24h)
dns_queries_nxdomainNXDOMAIN DNS responses (24h)

Traffic (7)

MetricDescription
requests_totalTotal HTTP requests (24h)
requests_cachedCached HTTP requests (24h)
requests_uncachedUncached HTTP requests (24h)
bandwidth_totalTotal bandwidth in bytes (24h)
bandwidth_cachedCached bandwidth in bytes (24h)
pageviews_totalTotal page views (24h)
visitors_uniqueUnique visitors (24h)

Security (4)

MetricDescription
threats_totalTotal threats detected (24h)
firewall_eventsTotal firewall events (24h)
firewall_blocksFirewall block actions (24h)
firewall_challengesFirewall challenge actions (24h)

Performance (6)

MetricDescription
cache_hit_ratioCache hit ratio as percentage (24h)
bandwidth_saved_ratioBandwidth saved ratio as percentage (24h)
status_2xx2xx status code count (24h)
status_3xx3xx status code count (24h)
status_4xx4xx status code count (24h)
status_5xx5xx status code count (24h)