Scheduled Maintenance for alerts
Asked by Derek Stevenson:

Is there a way to turn off alerting for certain alerts during scheduled windows? Situation is this we have 10 servers that go down every 8 hours for 10 minutes, we need to have OG not trigger the alert at all so it doesn't page us or make a ticket through Jira automation.

Can we disable an integration (API) for Grafana (monitoring tool) in selected time increments?

Seems like the notification policies are meant for email and such correct?


Answers:
author: G?k?em
body: Hi Derek,

Yes, there might be some possible solutions to your question. One is to define a maintenance period under Global Policies.

![Screenshot at Oct 30 14-11-31.png](https://community.atlassian.com/t5/image/serverpage/image-id/116410i4D62716703C83FB7/image-size/large?v=v2&px=999 "Screenshot at Oct 30 14-11-31.png")Under this option, the period should be updated regularly.

Another option is to send disable and enable integration API requests for the periods that you want the integration to be disabled and enabled again.

If by the API tool that you are using, you can make this request to be periodically sent, this might also solve your problem.

The below links are for disabling and enabling integration API requests.

<https://docs.opsgenie.com/docs/integration-api#disable-integration>

<https://docs.opsgenie.com/docs/integration-api#enable-integration>

comments: author: Derek Stevenson
body: Thanks! will try these out


author: Derek Stevenson
body: ![disabled.png](https://community.atlassian.com/t5/image/serverpage/image-id/116819i7EC4111B5A58BEDA/image-size/large?v=v2&px=999 "disabled.png")Ok I can get it to silence alerts through alert policy, but when i try to disable API it always stays in the disabled state here


author: G?k?em
body: Hi Derek,

To clarify the issue, does it stays in a disabled state, after the hours that you have defined in the time frame? Could you please elaborate?


author: Derek Stevenson
body: yes it stays in disabled state the entire time EVEN during the schedule window I see that it in maintenance mode but it still says disabled, and it didn't stop the alerts from coming in. I got the alert policy to work as expected but hoping to get the API way to work so we can give it to the deployment team so they can add it to their scripts for maintenance.![API.png](https://community.atlassian.com/t5/image/serverpage/image-id/116846iE2AF23CB58A86FD8/image-size/large?v=v2&px=999 "API.png")


author: G?k?em
body: Hi Derek,

Thanks for elaborating on the case. For investigating your logs in more detail, could you please contact us via chat through the blue chat bubble button, on your Opsgenie account?


author: Jan-Willem Aikens
body: Hi [@Derek Stevenson](/t5/user/viewprofilepage/user-id/3905697) and [@G?k?em](/t5/user/viewprofilepage/user-id/2905119) , did you guys work this out in the end, and how?  
This might be a way to go for me as well...

Thanks, Jan-Willem

comments: author: G?k?em
body: Hi [@Jan-Willem Aikens](/t5/user/viewprofilepage/user-id/4283063) , we haven't contacted specifically about Derek's case. But if you do have also problems you can reach us through chat, so that me and my colleagues can help in more detail :)


author: Derek Stevenson
body: Thanks all i figured it out =)


Tags: cloud