kube_cronjob_status_active doesn't tell if a cronjob is running #2429
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
I am using
kube_cronjob_status_active
to monitor my cronjob, it runs every 5 minutes.In the given time window,
kube_cronjob_status_active{cronjob=my-job}
shows that there is no active cronjob running:However if I check
kube_job_status_start_time{job_name=my-job*}
(my-job
is a cronjob, every job instance has name likemy-job-12345678
) within same time window, it shows that there are jobs scheduled to run approximately every 5 minutes:What you expected to happen:
I would like to see that the
kube_cronjob_status_active
matcheskube_job_status_start_time
.How to reproduce it (as minimally and precisely as possible):
It is running in our internal k8s cluster so I don't know how to let others repo it, but I am happy to provide as much information as needed.
Anything else we need to know?:
Environment: AWS EKS
kubectl version
):The text was updated successfully, but these errors were encountered: