Introduce new job metric kube_job_status_suspend
#2511
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
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
The text was updated successfully, but these errors were encountered: