Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for pod diffs. #17

Closed
wants to merge 1 commit into from
Closed

Add support for pod diffs. #17

wants to merge 1 commit into from

Conversation

asherf
Copy link
Contributor

@asherf asherf commented Jul 9, 2021

No description provided.

@joe-elliott
Copy link
Member

I thought pods were immutable? I could be wrong, it's been awhile since I was deep in k8s land.

@asherf
Copy link
Contributor Author

asherf commented Jul 9, 2021

For annotating grafana charts purposes, this will be useful because it can log pods being replaced (create/deleted), this can be triggered by pod getting killed by k8s (oom killer or getting evicted for other reasons) or a pod getting replaced due to a node dying.
Another use case this allows is detect and logging (and thus annotating) container restarts with pods (which is the use case we are interested in)

@joe-elliott
Copy link
Member

I believe everything you mentioned are kubernetes events and we use this project:

https://github.com/heptiolabs/eventrouter

to dump those to stdout.

@asherf asherf closed this Jul 12, 2021
@aantn
Copy link

aantn commented Jan 7, 2022

If someone is still looking for a solution, I wrote an open source project writes Grafana annotations when Kubernetes objects change. It supports pod creation/update/deletion and you can specify in YAML which fields to monitor.

https://docs.robusta.dev/master/catalog/actions/grafana.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants