You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Add ebpf collector. Monitor TCP and UDP sockets for network events. Our first approach of monitoring link level funcs is not going anywhere due to lack of process context in those functions. So we resorted to monitoring TCP and UDP sockets which are more high level but surely we will have correct process context. For the case of VFS events, we monitor read, write, create, mkdir, unlink events. Only read write events are aggregated by mount points where as the rest are globally aggregated. Use higher max entries for maps to get more expected behaviour in evicting entries. Keep CPU specific LRU cache for better performance.
* refactor: Reorganize code of individual collectors
* Make a generic cgroup collector that can be used for different resource managers. Generic cgroup collector wont register itself to Collector interface and it is meant to be used in other collectors. Resource manager collectors must pass a list of valid cgroup paths to cgroup collector for metrics fetching.
* Similarly perf collector has been modified to become internal generic collector that must be called from other collectors specific to resource managers. Same goes to ebpf collector where it becomes an internal collector that is meant to be called from other collectors. Use go routines in perf collector to update.
* cgroup, perf and ebpf collectors take an argument cgroupManager during instantiation that will direct on which processes/cgroups must be monitored.
* The side-effect is that we replicate CLI args for each resource manager but this should not be an issue as exporter on a given host will not/should not target two different resource managers. So, operators will never have to deal with duplication.
* ci: Install clang==18 in CI when not found. Add a dummy ELF object file for linter to pass. Make bpf assets before running unit tests
---------
Signed-off-by: Mahendra Paipuri <mahendra.paipuri@gmail.com>
0 commit comments