
collector
Index
type CollectorConfig
CollectorConfig holds the shared parameters for constructing a collector.
type FirewallCollector
FirewallCollector polls Cloudflare for firewall events and ships them to Loki.
func NewFirewallCollector
NewFirewallCollector creates a firewall event collector for the given zone with the backfill window applied to the initial poll.
func (*FirewallCollector) Run
Run starts the polling loop and blocks until ctx is cancelled. Implements the lifecycle.Service interface.
type HTTPCollector
HTTPCollector polls Cloudflare for HTTP traffic stats, updates Prometheus gauges, and ships raw traffic data to Loki.
func NewHTTPCollector
NewHTTPCollector creates an HTTP traffic collector for the given zone with the backfill window applied to the initial poll.
func (*HTTPCollector) Run
Run starts the polling loop and blocks until ctx is cancelled. Implements the lifecycle.Service interface.
Generated by gomarkdoc