Collector leverages a CO-RE eBPF probe and eBPF probes for gathering data directly from the kernel.
When collector starts up, if the COLLECTION_METHOD is eBPF, it will
automatically try to download a driver compatible with the running kernel.
For most distributions this will be determined with the uname -r
command,
but some special cases exist. In such cases, collector will create a set of
potential candidates and try to find them sequentially, first looking for
them in the filesystem and then trying to download them.
In cases where the auto-generated list of candidates are failing to create a
working option, the KERNEL_CANDIDATES
environment variable can be used to
bypass this mechanism altogether.