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

Node Termination/Removal Time #1889

Closed
twosdai opened this issue Nov 11, 2022 · 2 comments · Fixed by #1890
Closed

Node Termination/Removal Time #1889

twosdai opened this issue Nov 11, 2022 · 2 comments · Fixed by #1890
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@twosdai
Copy link

twosdai commented Nov 11, 2022

What would you like to be added:
A timestamp which records when a Node was removed from the cluster.
Why is this needed:
So as to track the performance and history of the physical infrastructure supporting the cluster, for alerting and monitoring purposes. Additionally this would be useful for things like auditing.
Describe the solution you'd like
Metrics would be exposed similar to the kube_pod_deletion_timestamp for pods, just for nodes.
Additional context

I'm not totally sure this is even possible within Kubernetes or if more information would be needed. I just noticed that there is no termination metric inside the Nodes category in the docs: https://github.com/kubernetes/kube-state-metrics/blob/master/docs/node-metrics.md

Additionally I have a question open on stack overflow about this request/issue
https://stackoverflow.com/questions/74351702/prometheus-scrape-node-terminate-time

@twosdai twosdai added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 11, 2022
@twosdai
Copy link
Author

twosdai commented Nov 11, 2022

If this isn't possible, or more information is needed please let me know, sorry if I have contributed to the noise!

@rexagod
Copy link
Member

rexagod commented Nov 12, 2022

/assign
We have this for pods, it makes sense to have it for nodes as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants