This is just code snippet of my alerts.yml file
- alert: ContainerKilled
expr: IF absent(((time() - container_last_seen{name=".+"}) < 5))
for: 15s
labels:
severity: warning
annotations:
summary: "Container killed (instance {{ $labels.instance }})"
description: "A container has been killed\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
Could anyone tell me what am I doing wrong in this rule?
It's throwing error :parse error: unexpected identifier \"absent\""