简体   繁体   中英

Monitoring Kubernetes CronJob completion using AWS Container Insights

Currently, I am not able to monitor any parameter on CronJobs (in Kubernetes) other than memory usage. Is there a way to monitor CronJob completion/failure in AWS CloudWatch? Thanks.

You can check Cronjob completion/failure by pods status only. However if you want to verify you can check by logs also if you have enable logs from EKS dashboard which will push logs to cloud watch and check the logs of cronjobs.

Also you can do something like:

kubectl get jobs <job-name> -o json | jq '.status.conditions'

but please just keep in mind Jobs never Failed (its Pods terminated with error doesn't mean the Jobs has Failed

How to get notification on job failing:

https://medium.com/faun/how-to-get-notifications-when-kubernetes-cronjobs-fail-ed4ca4313e81

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM