问题描述
当删除任何名称空间或任何特定名称空间时,如何添加普罗米修斯警报。 对于POD重新启动,我正在使用以下查询
alert: PodRestarting
expr: increase(kube_pod_container_status_restarts_total{namespace="asac-1"}[10m]) > 0
for: 1m
labels:
severity: warning
annotations:
description: Pod {{`{{$labels.namespace}}`}}/{{`{{$labels.pod}}`}} was restarted {{`{{$value}}`}}times within the last 10min.
summary: Pod restarted.
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)