GameServerManagers / GameServerManagers/LinuxGSM

[Feature]: Rate Limit the number of alerts that can be sent

Open
#4,566 1 comment 0 reactions 0 assignees View on GitHub
command: monitor distro: Ubuntu info: alerts type: feature
Dominant language
Shell
Stars
4.9k
Forks
864
PR merge metrics
No merged PRs in 30d

Description

### User story

As a server admin, i don't want to get spammed with alerts by a server that isn't starting correctly.

### Game

All

### Linux distro

Ubuntu 22.04

### Command

command: monitor

### Further information

Currently, if a server repeatedly crashes or can't start properly, when running the command `./gameserver monitor`, LinuxGSM will send an alert that the server is offline (if alerts are turned on). Whilst this is generally very helpful to get notified of problems, it can cause a massive flood of alerts if the monitor command is set to run every 5 minutes, as suggested in the [Docs](https://docs.linuxgsm.com/configuration/cronjobs#complete-example).

I suggest either implementing a hard rate limit for a certain period of time, so that only a configurable number of alerts can be sent within a configurable period of time, or temporarily disabling alerts if the monitor command fails a configurable number of times in succession.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.