consul-alerts icon indicating copy to clipboard operation
consul-alerts copied to clipboard

Alerts - not alert when on maintenance mode

Open andrecp opened this issue 6 years ago • 3 comments

Hi,

Is there an option to not alert when on maintenance mode ? When we are redeploying some of our services we put it in maint mode, drain the connection, and then deploy a new version.

Same for when we do database backups, we put it in maint mode before we start.

They're all controlled environments (hence the maint mode) so we wouldn't like to be alerted.

If this is a valid feature that isn't in place already I would also be happy to try to investigate.

Thanks

andrecp avatar Jan 04 '18 17:01 andrecp

Same problem here.

mprcela avatar Jan 31 '18 08:01 mprcela

I had just disabled the alerts while doing the maintenance, re-enable at the end of our playbooks.

sidewinder12s avatar Apr 30 '18 18:04 sidewinder12s

I started investigating how to implement this, since it would be a very useful feature I found a bug in Consul that does not update the state of maintenance mode check it creates before removing it. I've created a PR that fixes that: https://github.com/hashicorp/consul/pull/11332

jakubgs avatar Oct 15 '21 15:10 jakubgs