Hi,

I'm trying to setup an alertmessage if the date of the last Velero backup 
(velero_backup_last_successful_timestamp{schedule="daily"}) is not of today.
I've tried that with the setup below, but it seems the comparison doesn't 
work in the expression. I want however to have the labels returned. 

annotations:
        description: There's no completed backup today for the 
backupschedule '{{ $labels.schedule }}'.
        message: The last successfull backup '{{ $labels.schedule }}' is {{ 
$value | humanizeDuration }} old.
        summary: No backup for today
        expr: time() - 
velero_backup_last_successful_timestamp{schedule="daily"} > hour() * 3600 + 
time() * 60

Any suggestions how to set this up?

Kind regards,  Ronald

-- 
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/7e20a5e5-758c-453b-aefb-8b8f03845dccn%40googlegroups.com.

Reply via email to