Open ThusharaSampath opened 1 week ago
/triage accepted /help
@dgrisonnet: This request has been marked as needing help from a contributor.
Please ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help
command.
What would you like to be added:
As of now kube job metrics have
kube_job_status_failed
,kube_job_status_succeeded
,kube_job_status_active
to track status of a job. With https://kubernetes.io/docs/concepts/workloads/controllers/job/#suspending-a-job jobs can be suspended. So having a status metric to track suspended jobs would be valuable.Following are status parts of a suspended job
Why is this needed:
As of now there is no way to monitor suspended jobs via kube-state-metrics (via prometheus)
Describe the solution you'd like
Implement new metric similar other jobs status metrics for suspended status
Additional context
https://kubernetes.io/blog/2021/04/12/introducing-suspended-jobs/
https://github.com/kubernetes/kube-state-metrics/blob/7995d5fd23bcff7ae24ab6849f7c393d262fb025/docs/metrics/workload/job-metrics.md