{"id":19678683,"url":"https://github.com/cbuto/kubectl-pprof","last_synced_at":"2025-04-29T04:30:43.248Z","repository":{"id":184936134,"uuid":"672615559","full_name":"cbuto/kubectl-pprof","owner":"cbuto","description":"kubectl plugin to collect pprof profiles from pods","archived":false,"fork":false,"pushed_at":"2023-07-31T02:17:56.000Z","size":23,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:51:16.400Z","etag":null,"topics":["kubectl-plugin","pprof"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cbuto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-30T17:22:05.000Z","updated_at":"2024-05-08T19:41:30.000Z","dependencies_parsed_at":"2023-07-31T03:14:12.211Z","dependency_job_id":null,"html_url":"https://github.com/cbuto/kubectl-pprof","commit_stats":null,"previous_names":["cbuto/kubectl-pprof"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuto%2Fkubectl-pprof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuto%2Fkubectl-pprof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuto%2Fkubectl-pprof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuto%2Fkubectl-pprof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbuto","download_url":"https://codeload.github.com/cbuto/kubectl-pprof/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251432620,"owners_count":21588616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubectl-plugin","pprof"],"created_at":"2024-11-11T17:39:10.723Z","updated_at":"2025-04-29T04:30:42.969Z","avatar_url":"https://github.com/cbuto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl pprof plugin\n\nA simple kubectl plugin to collect Go pprof profiles from pods that \nexpose the [\"net/http/pprof\"](https://pkg.go.dev/net/http/pprof) endpoints on a local port.\n\nThe plugin will port-forward to the specified pod and write the pprof profile to the filesystem\nto be analyze with `go tool pprof`.\n\n## Installing\n\n1. Download the binary from the GH release\n2. Move the `kubectl-pprof` binary to anywhere in your `$PATH`\n3. Run `kubectl pprof -h` to validate the plugin is working\n\n## Example usage\n\n### Collecting a CPU profile\n\n```bash\nkubectl pprof \u003cpod\u003e --port 8080 -n \u003cnamespace\u003e --profile cpu\n```\n\n### Collecting a heap profile for 30 seconds\n\n```bash\nkubectl pprof \u003cpod\u003e --port 8080 -n \u003cnamespace\u003e --profile heap --seconds 30 --output /tmp/\n```\n\n### Pass a profile directly to `go tool pprof` (suppress output with `-q`)\n\n```bash\nkubectl pprof \u003cpod\u003e --port 8080 -n \u003cnamespace\u003e --profile cpu -q | xargs go tool pprof -http=:8080\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuto%2Fkubectl-pprof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbuto%2Fkubectl-pprof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuto%2Fkubectl-pprof/lists"}