Hi,

On 6/19/20 4:20 PM, Isabel Noronha wrote:
>  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\""

The "IF" doesn't belong there. Try removing it. :)

Kind regards,
Christian

-- 
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/7e03929a-ac68-d56e-4a14-1bfacdc329d5%40hoffmann-christian.info.

Reply via email to