I have created a alert rule for pod termination . But the alerts keep firing because a new pod is creating with a new name, so the last pod is no longer available either. In such case how to create a better rule for that. Am pasting my alert rule below
alert: ContainerTerminated
expr: kube_pod_container_status_terminated > 0
for: 10m
labels:
severity: warning
annotations:
summary: "Container terminated \n"
description: "A container {{ $labels.container }} in the namespace {{ $labels.namespace }} has been terminated. "