mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-01-30 05:54:21 +00:00
* Update config.go, tapConfig.go, and models.go * WIP * Update go.sum * Update tapRunner.go * Update tap.go * WIP * WIP * Update Dockerfile, main.go, and 2 more files... * WIP * Update utils.go, tapClusterResourceManagement.go, and utils.go * Merge branch 'develop' * Update metadata_controller.go, utils.go, and 2 more files... * Update main.go, utils.go, and tapRunner.go * Update tapRunner.go * Update config.go, config.go, and models.go * Update main.go, main.go, and stats_provider_test.go * Update provider.go * bug fixes * Update main.go, metadata_controller.go, and 13 more files... * Update metadata_controller.go, status_controller.go, and 4 more files... * Update main.go, config.go, and 3 more files... * Update tapRunner.go * Update config.go, stats_provider_test.go, and consts.go
mizu agent
Agent for MIZU (API server and tapper) Basic APIs:
- /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 --set agent-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.