[英]Monitoring Kubernetes CronJob completion using AWS Container Insights
目前,除了 memory 的使用情況外,我無法監控 CronJobs(在 Kubernetes 中)的任何參數。 有沒有辦法在 AWS CloudWatch 中監控 CronJob 的完成/失敗? 謝謝。
您只能通過 pod 狀態檢查 Cronjob 完成/失敗。 但是,如果您想驗證,您也可以通過日志檢查是否從 EKS 儀表板啟用日志,這會將日志推送到雲手表並檢查 cronjobs 的日志。
您也可以執行以下操作:
kubectl get jobs <job-name> -o json | jq '.status.conditions'
但請記住, Jobs never Failed (its Pods terminated with error doesn't mean the Jobs has Failed
如何獲得作業失敗的通知:
https://medium.com/faun/how-to-get-notifications-when-kubernetes-cronjobs-fail-ed4ca4313e81
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.