https://github.com/simonbaeumer/debug-dumper
https://github.com/simonbaeumer/debug-dumper
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simonbaeumer/debug-dumper
- Owner: SimonBaeumer
- Created: 2024-01-30T13:45:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T09:07:46.000Z (over 2 years ago)
- Last Synced: 2025-10-09T22:34:52.367Z (9 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Debug Watcher
Debug watcher lists all Pods metrics (in this case for Pods with `app.kubernetes.io/component=central`).
```go
// Create and start the debug dumper
ctx, cancelFn := context.WithCancel(context.Background())
dumper := monitoring.Dumper{
DebugInfoGetter: debughandlers.DebugInfoGetterFileSystem,
MetricsClientset: metricsClientset,
Clientset: clientset,
MemoryThreshold: MemoryThreshold,
Interval: 5 * time.Minute,
}
go dumper.Watch(ctx)
```