Replies: 11 comments 3 replies
|
No maintenance window exists today. What comes closest is the quiet hours schedule on the Schedule tab of the alert settings, per day start and end times in your timezone, and notifications raised inside the window are held rather than sent. For containers your jobs bounce every night, that covers the recurring case. You can also disable state alerts or drop their severity per container. An ad hoc pause, or a window scoped to specific containers rather than all notifications, does not exist yet, and I think it is a fair ask for exactly this pattern. Does your job schedule run at a fixed time each day, or does it float? |
|
Came here to ask this basically similar thing: I would like a way to control the enablement of Alerts via API. When I do maintenance on my Proxmox, shut down VMs, reboot nodes, update storage etc the alerts go crazy I looked at the API docs but I could only find an endpoint Is there a way to do this? @rcourtman |
|
@rcourtman awesome. I think I did it. It seems to be working! |
|
Hi @luckman212 , |
|
@FabienD74 I think that's what I've accomplished with my script. The script iterates over all of the nodes in the {
"maintenanceStartAt": "{now}",
"maintenanceEndAt": "{now + 3600}",
"maintenanceScope": "resource_and_descendants"
}This creates a 1-hour maintenance window. I tested this and it appeared to work, but it was a simulation not an actual maintenance so no actual alarms were triggered. We will see during the next window if it actually succeeds. If you want I can post my script somewhere... |
|
@luckman212 I'm currently looking at the api |
|
@rcourtman |
|
i created a tool to retreive API from pulse, so if i do Now each system can search for it's own ID then play with |
|
@FabienD74 yeah I don't mind sharing my script. Hang on a minute I'll post it as a gist. It's already a shell script so you should be able to drop it right in to your workflow. |
|
@FabienD74 posted: https://github.com/luckman212/pulse-maintenance |
|
NICE !! To achieve my goal i only had to change: Then pass as new argument and add a little PS: I just need to fine-tuned to retreive the hostname ( not FQDN, handle upper/lower cases ) ... then i can stat to deploy it! |
Uh oh!
There was an error while loading. Please reload this page.
I have a number of jobs that run through most of my Docker stacks. For that 20 minutes or so, they go offline and come back up, one at a time.
Couldn't we get a "maintenance window" for containers down, or just a "don't log issues or send alerts during a time period"?
What do you all do to work around missing this feature?
All reactions