I'm trying to create a Dashboard in Grafana that will show the status of Cronjob & Job success & fail.

Currently i'm using kube_job_status_succeeded to get a status job, but the issue here PromQL also take a 3 days of job status back, but i only wanted for 1 days job status.

I try to be creative with kube_job_created but no luck.

How can i get only kube_job_status_succeeded for 1 day only ? Thank you.


Did you try to set the .spec.successfulJobsHistoryLimit to 1 instead of the default value of 3?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.