1

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.

0

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

https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits

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.