Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 854 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 854 Bytes

TCPRTT Exporter

TCPRTT Exporter is a toy that runs ip tcp_metrics command to collect tcp rtt value from host, can be used to monitor network latency jitter. Note that since TCP source/destination IP is exported as metrics label, it could meet high cardinality issue of prometheus.

Usage

# start monitoring and will export metrics to http://0.0.0.0:8090/metrics
./tcprtt_exporter
# like command above, but will try to resolve ip address to pod/service name in kubernetes cluster
./tcprtt_exporter -kubeconfig $KUBECONFIG -resolve-kubernetes

TODO

  • example kubernetes deployment manifest
  • option to collect rtt using eBPF, since data from ip tcp_metrics is only updated when TCP connection is closed.