Architecture
The Project Architecture
Agent Architecture
Kindling agent from detailed view can be splited into Kindling Probe and Kinding Collector.
Kindling Probe is composed of kernel-space modules which produce kernel events and user-space module controller which consumes kernel events and transform them into structured format, namely Kindling Events.
Kindling Collector process and analyze Kindling Events into metrics and traces with the kubernetes metadata, and export them to the Prometheus server.
Detailed Data Flow
The data flows with the following sequence:
Kernel Events are collected from kernel space, passed through ringbuffer: eBPF module uses perf-buffer, while kernel module uses ringbuffer self-defined.
In user-space, Kindling Probe correlates container information, thread information, fd information to Kernel Events (if it has, some events may fail to correlate to any thread or fd).
Kindling Events will be transferred from Kindling Probe to Kindling Collector by Event Publisher through CGO.
Then Kindling Collector will parse Kindling Events, judge if it’s a request or reponse, analyze its protocol, etc. Collector also aggregates requests data for sending and integrating kubernetes metadata, and finally export the yields (metrics and traces) to the Prometheus server.