Skip to content
/ shawk Public

[PoC] A socket-based tracing system for discovering network service dependencies. (renamed from transtracer)

License

Notifications You must be signed in to change notification settings

yuuki/shawk

Repository files navigation

Transtracer

Build Status Latest Version Go Report Card License

Transtracer is a tracing infrastructure for discovering network services dependecies on the transport network layer.

System Overview

System structure Socket diagnosis

Requirements

  • OS: Linux
  • RDBMS: PostgreSQL 10+

Usage

ttracerd

# ttracerd --dbuser ttracer --dbpass ttracer --dbhost 10.0.0.20 --dbname "ttctl"

Make ttracer run once.

# ttracerd --once --interval-sec 3 --dbuser ttracer --dbpass ttracer --dbhost 10.0.0.20 --dbname "ttctl"

ttctl

$ ttctl --level 2 --dest-ipv4 10.0.0.21
10.0.0.21:80
└<-- 10.0.0.22:many ('nginx', pgid=2000, connections=30)
└<-- 10.0.0.23:many ('nginx', pgid=891, connections=30)
└<-- 10.0.0.24:many ('nginx', pgid=1002, connections=30)
        └<-- 10.0.0.30:many ('python', pgid=1889 connections=1)
        └<-- 10.0.0.31:many ('python', pgid=1998 connections=1)
└<-- 10.0.0.25:many (connections:30)

10.0.0.21:22
└<-- 10.0.0.100:many

License

MIT

Author

yuuki