{"id":19484480,"url":"https://github.com/flowerinthenight/oomkill-watch","last_synced_at":"2026-05-09T07:39:39.782Z","repository":{"id":236274077,"uuid":"792277603","full_name":"flowerinthenight/oomkill-watch","owner":"flowerinthenight","description":"A tool for watching OOMKilled events in Kubernetes clusters.","archived":false,"fork":false,"pushed_at":"2024-04-27T02:41:46.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T07:03:00.396Z","etag":null,"topics":["golang","k8s","kubectl","oomkilled","slack","tail","watch"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flowerinthenight.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T10:38:27.000Z","updated_at":"2024-04-27T02:41:36.000Z","dependencies_parsed_at":"2024-04-26T11:41:52.329Z","dependency_job_id":"9c22f594-995f-447f-b02d-9bae6e92e241","html_url":"https://github.com/flowerinthenight/oomkill-watch","commit_stats":null,"previous_names":["flowerinthenight/oomkill-watch"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/flowerinthenight/oomkill-watch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowerinthenight%2Foomkill-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowerinthenight%2Foomkill-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowerinthenight%2Foomkill-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowerinthenight%2Foomkill-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flowerinthenight","download_url":"https://codeload.github.com/flowerinthenight/oomkill-watch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flowerinthenight%2Foomkill-watch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32811656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["golang","k8s","kubectl","oomkilled","slack","tail","watch"],"created_at":"2024-11-10T20:22:06.698Z","updated_at":"2026-05-09T07:39:39.765Z","avatar_url":"https://github.com/flowerinthenight.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![main](https://github.com/flowerinthenight/oomkill-watch/actions/workflows/main.yml/badge.svg)](https://github.com/flowerinthenight/oomkill-watch/actions/workflows/main.yml)\n\n## Overview\n\n`oomkill-watch` is a simple wrapper to the `kubectl get events -w` command, specifically filtering the `OOMKilling` events and optionally forwarding them to a Slack channel. It is designed to be long-running, ensuring restarts of the `kubectl` child process in situations where it terminates due to network or timeout errors.\n\n## Installation\n\nTo run locally, you can either install it using [Homebrew](https://brew.sh/):\n\n```sh\n$ brew install flowerinthenight/tap/oomkill-watch\n```\nor using your Go environment:\n\n```sh\n$ go install github.com/flowerinthenight/oomkill-watch\n```\n\nWhen started, the resulting `kubectl` child process will use its current config for accessing a cluster. Therefore, make sure that your `kubectl` is pointing to the intended cluster first before running the tool.\n\n## Deployment\n\nThe provided [Dockerfile](./Dockerfile) is for reference only as it's not configured to access any cluster.\n\nI've only tried deploying this tool on a GKE cluster. You might want to use other commands to configure `kubectl` inside the pod for proper cluster access if you're not using GKE. Here's a snippet of the deployment file I'm using:\n\n```yaml\napiVersion: apps/v1\nkind: Deployment\n...\nspec:\n  selector:\n    matchLabels:\n      app: oomkill-watch\n  replicas: 1\n  revisionHistoryLimit: 5\n  template:\n    metadata:\n      labels:\n        app: oomkill-watch\n    spec:\n      containers:\n      - name: oomkill-watch\n        image: \"{your-image-here}\"\n        command:\n        - '/bin/bash'\n        - '-c'\n        - |\n          gcloud container clusters get-credentials {clustername} \u0026\u0026 \\\n          /app/oomkill-watch -slack {channel-webhook}\n```\n\nIt overrides the command from the `Dockerfile` by running `gcloud container clusters get-credentials ...` first to configure `kubectl`'s cluster access before running the tool.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowerinthenight%2Foomkill-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflowerinthenight%2Foomkill-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflowerinthenight%2Foomkill-watch/lists"}