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\""

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6d8f6c39-208c-4183-abac-ecaec13be9ddo%40googlegroups.com.

Reply via email to