gardener-attic / connectivity-exporter Goto Github PK
View Code? Open in Web Editor NEWA tool based on eBPF, prometheus and grafana to monitor network connectivity.
License: Apache License 2.0
A tool based on eBPF, prometheus and grafana to monitor network connectivity.
License: Apache License 2.0
What happened:
When testing in a dev gardener seed cluster, for some shoots, the connectivity exporter reports “active_failed” seconds. We checked the network traffic with tcp dump on the same node, and couldn't find aborted TCP connections (i.e. couldn't find RST packets sent by envoy to the client). So it seems to be a "false" signal.
Query:
sum(increase(connectivity_exporter_seconds_total{kind="active_failed", sni="..."}[2m])) by (sni, pod, kind)
We couldn't reproduce it locally.
It seems to happen for all the shoot clusters, on all the nodes.
max(rate(connectivity_exporter_seconds_total{kind="active"}[100m])) by (sni, pod)
unless
max(rate(connectivity_exporter_seconds_total{kind="active_failed"}[100m])) by (sni, pod)
It could be related to this line
diff --git a/connectivity-exporter/packet/c/cap.c b/connectivity-exporter/packet/c/cap.c
index dd49eb1..807d511 100644
--- a/connectivity-exporter/packet/c/cap.c
+++ b/connectivity-exporter/packet/c/cap.c
@@ -399 +399 @@ int capture_packets_internal(struct __sk_buff *skb)
- conn->state = RST_RECEIVED;
+ // conn->state = RST_RECEIVED;
With that line commented out, we don't see that background noise any more:
count(max(rate(connectivity_exporter_connections_total{kind="rejected"}[5m])) by (sni) > 0)
max(connectivity_exporter_seconds_total{kind="active_failed"}) by(sni) > 0
What you expected to happen:
No false positive failed seconds.
with @wyb1
I'd like to test connectivity-exporter on AKS with different network configurations:
I will report here my findings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.