1. cloudflare-log-collector > 
  2. Go API
cloudflare-log-collector

cloudflare-log-collector Go API

Auto-generated reference documentation from the Go source code.
cloudflare

GraphQL API client for Cloudflare Analytics. Query builders, response parsing, retry logic.

collector

Firewall event and HTTP traffic poll loops. Orchestrates Cloudflare queries and Loki shipping.

config

YAML configuration loading with environment variable expansion and validation.

lifecycle

Background service lifecycle manager with panic recovery and supervised restarts.

loki

Loki push API client with batching, retry, and multi-tenant support.

metrics

Prometheus metric definitions for poll health, firewall events, HTTP traffic, and Loki push status.

telemetry

OpenTelemetry tracer setup, span helpers, and slog trace correlation handler.

cloudflare-log-collector cloudflare-log-collector

  • Home


    • Documentation
      • Architecture
      • README
      • Grafana Dashboard
      • Changelog
    • Go API
      • cloudflare
      • collector
      • config
      • lifecycle
      • loki
      • metrics
      • telemetry

        Built by Alex Freidah

        MIT License