Giter Site home page Giter Site logo

gardener-attic / connectivity-exporter Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 7.0 11.83 MB

A tool based on eBPF, prometheus and grafana to monitor network connectivity.

License: Apache License 2.0

Shell 3.93% Makefile 1.71% Dockerfile 0.75% Go 70.84% C 22.76%

connectivity-exporter's People

Contributors

alban avatar gardener-robot avatar istvanballok avatar wyb1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connectivity-exporter's Issues

False positive failed seconds

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)

image

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.