mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-10-21 15:29:42 +00:00
* Renamed aggregator -> apiServer. * Format errors with container names. * Renamed collector -> apiServer. * Rephrased help messages. * Moved api -> agent. * Continue renameing api -> agent in Makefile and Dockerfiles.
919 B
919 B
mizu agent
Agent for MIZU (API server and tapper) Basic APIs:
- /fetch - retrieve traffic data
- /stats - retrieve statistics of collected data
- /viewer - web ui
Remote Debugging
Setup remote debugging
- Run
go get github.com/go-delve/delve/cmd/dlv
- Create a "Go Remote" run/debug configuration in Intellij, set to localhost:2345
- Build and push a debug image using
docker build . -t gcr.io/up9-docker-hub/mizu/debug:latest -f debug.Dockerfile && docker push gcr.io/up9-docker-hub/mizu/debug:latest
Connecting
- Start mizu using the cli with the debug image
mizu tap --mizu-image gcr.io/up9-docker-hub/mizu/debug:latest {tapped_pod_name}
- Forward the debug port using
kubectl port-forward -n default mizu-api-server 2345:2345
- Run the run/debug configuration you've created earlier in Intellij.
Do note that dlv won't start the api until a debugger connects to it.