*My requirement is to check the expression three times before it send alert in slack or Email*
*Current Config:* In the below config,* for:5m* will send an alert if the memory usage is over 80% . But I want to check the expression *vmware_vm_mem_usage_average / 100 >= 80 *in loop which means when the Memory is over 80% the expression will counter first time and recheck with same expression for second time and again recheck third time and when the memory is still over 80% after three checks then the alert will start . groups: - name: target rules: - alert: VirtualMachineMemoryWarning expr: vmware_vm_mem_usage_average / 100 >= 80 for: 5m labels: severity: warning team: devops annotations: summary: Virtual Machine Memory Warning (instance {{ $labels.instance }}) description: High memory usage on {{ $labels.instance }} -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9dabed13-fcc1-4a00-8a5b-58073a899f46n%40googlegroups.com.