{"id":13561940,"url":"https://github.com/grafana/kubernetes-diff-logger","last_synced_at":"2025-10-25T09:14:49.218Z","repository":{"id":35268688,"uuid":"217114356","full_name":"grafana/kubernetes-diff-logger","owner":"grafana","description":"Logs updates to Kubernetes Objects for storing and querying with Loki","archived":false,"fork":false,"pushed_at":"2024-06-09T22:05:36.000Z","size":75,"stargazers_count":128,"open_issues_count":5,"forks_count":24,"subscribers_count":146,"default_branch":"master","last_synced_at":"2025-03-28T22:13:31.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"joe-elliott/kubernetes-diff-logger","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grafana.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":"2019-10-23T17:24:30.000Z","updated_at":"2025-02-07T21:48:36.000Z","dependencies_parsed_at":"2024-01-16T18:59:36.072Z","dependency_job_id":"6babf28a-4d04-4675-9526-b4f0e7e661d5","html_url":"https://github.com/grafana/kubernetes-diff-logger","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fkubernetes-diff-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fkubernetes-diff-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fkubernetes-diff-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fkubernetes-diff-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grafana","download_url":"https://codeload.github.com/grafana/kubernetes-diff-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247261612,"owners_count":20910108,"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":[],"created_at":"2024-08-01T13:01:02.806Z","updated_at":"2025-10-25T09:14:49.137Z","avatar_url":"https://github.com/grafana.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# kubernetes-diff-logger\n\nThis simple application is designed to watch Kubernetes objects and log diffs when they occur.  It is designed to log changes to Kubernetes objects in a clean way for storage and processing in [Loki](https://github.com/grafana/loki/).\n\n## Example\n\n```\n./kubernetes-diff-logger -namespace=default\n{\"timestamp\":\"2019-10-23T16:57:23Z\",\"verb\":\"updated\",\"type\":\"deployment\",\"notes\":\"[Replicas: 1 != 2]\", \"name\":\"nginx\"}}\n{\"timestamp\":\"2019-10-23T16:57:35Z\",\"verb\":\"updated\",\"type\":\"deployment\",\"notes\":\"[Template.Spec.Containers.slice[0].Image: nginx != nginx:latest]\", \"name\":\"nginx\"}}\n```\n\nSee [Deployment](./deployment) for example yaml to deploy to Kubernetes.  The example will monitor and log information about changes in all namespaces.\n\n## Usage\n\n```\nUsage of ./kubernetes-diff-logger:\n  -config string\n    \tPath to config file.  Required.\n  -kubeconfig string\n    \tPath to a kubeconfig. Only required if out-of-cluster.\n  -log-added\n    \tLog when deployments are added.\n  -log-deleted\n    \tLog when deployments are deleted.\n  -master string\n    \tThe address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster.\n  -namespace string\n    \tFilter updates by namespace.  Leave empty to watch all.\n  -resync duration\n    \tPeriodic interval in which to force resync objects. (default 30s)\n```\n\n## Config File\n\n```yaml\ndiffers:\n- nameFilter: \"*\"\n  type: \"deployment\"\n- nameFilter: \"*\"\n  type: \"statefulset\"\n- nameFilter: \"*\"\n  type: \"daemonset\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafana%2Fkubernetes-diff-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrafana%2Fkubernetes-diff-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafana%2Fkubernetes-diff-logger/lists"}