remram44 / traffic-logger

Uses eBPF to measure traffic amount per local address (useful for container accounting)
0 stars 1 forks source link

[HSRN VIP] Enhance traffic-logger #1

Open nicksome168 opened 7 months ago

nicksome168 commented 7 months ago

I am pushing back any work that involves BPF program such as adding ICMP packets logging and try to get a runnable proof-of-concept first that allows you to instrument pods on a machine to get observability in network traffic within the k8s cluster context.

nicksome168 commented 6 months ago

I found another repo that did a similar thing. They have very nice modularization. Some notable differences:

the author also wrote a medium on this https://medium.com/@isalapiyarisi/getting-started-on-kubernetes-observability-with-ebpf-88139eb13fb2

nicksome168 commented 6 months ago

As for ICMP tracing, i looked around and couldn't find the exact code snippet that does what we want here. The closest one I found was this code that intercepts ICMP ping and sends back the pong. We should be able to repurpose it.

remram44 commented 6 months ago

I don't know if ICMP is a high priority, we can definitely roll this out and get useful information without it, so it can be done later.