Alert notification when resource is suspended / resumed #3144
-
Using flux suspend, you can stop update of any resource in the cluster, that's great for testing, but if someone does this in production, there is no way of knowing why deployments are not happening unless you check for suspended resources. It would be nice if it was possible to receive alerts / notifications if a resource is suspended or has been suspended for more than x amount of time. That way, you will get a constant reminder that you have suspended resources, so you don't forget to resume them |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the |
Beta Was this translation helpful? Give feedback.
You can use the
gotk_suspend_status
metric and setup a Prometheus alert usingfor: 30m
or whatever interval suits you.Docs: https://fluxcd.io/flux/guides/monitoring/#metrics