I have installed Alloy on my instances and want to receive an alert when my instance is restarted (rebooted). I tried using increase(up{instance=~"my-instance-.*"}[10m]) == 1
, but it’s not working. Can someone help me? It could be a check to see if it’s been up for less than 10 minutes, but the problem is that when I’m restarting the server, Alloy doesn’t send metrics during that time, so I’m not receiving metrics that would indicate it’s down during that period.
Thanks.