coroot / coroot-node-agent

A Prometheus exporter based on eBPF that gathers comprehensive container metrics
https://coroot.com/docs/metrics/node-agent
Apache License 2.0
312 stars 55 forks source link

container: add a cache for the IPs assigned to network namespaces #45

Closed apetruhin closed 9 months ago

apetruhin commented 9 months ago

This eliminates the need to discover the specific IPs associated with network namespaces every time a TCP listen event occurs. In some cases, there may be numerous such events, such as when a JVM is monitored through JMX, which opens a new TCP port while establishing a new connection.

Related to https://github.com/coroot/coroot-node-agent/issues/44.