feat: make alerts configurable #19

Open
p4u1 wants to merge 1 commits from configurable-alerts into main
Owner

Alert threshholds can now be configured via env variables

I also seperated the basic auth, so that it is possible to deploy only prometheus without promtail

Alert threshholds can now be configured via env variables I also seperated the basic auth, so that it is possible to deploy only prometheus without promtail
p4u1 added 1 commit 2026-03-31 18:16:25 +00:00
Author
Owner

@dannygroenewegen did you get around to test this yet? :)

@dannygroenewegen did you get around to test this yet? :)
ammaratef45 approved these changes 2026-04-03 02:10:09 +00:00
ammaratef45 left a comment
Owner

nice!

nice!
@ -168,1 +161,4 @@
It is possible to enable the following alerts, by uncommenting the corresponding env variable:
- node disk space: `ALERT_NODE_DISK_SPACE_LEFT`
- node memory usage: `ALERT_NODE_MEMORY_USAGE`
Owner

nit: should probably remove the options from here since they are explained in the env file, otherwise we would have to remember that these need to be updates in 2 places

nit: should probably remove the options from here since they are explained in the env file, otherwise we would have to remember that these need to be updates in 2 places
Author
Owner

Ah yes, good point!

Ah yes, good point!
dannygroenewegen requested changes 2026-04-03 11:00:24 +00:00
@ -80,4 +81,2 @@
#GF_MATRIX_HOMESERVER_URL="<homeserver-url>"
# ALerts
#ALERT_BACKUP_FAILED_ENABLED=true

I've seen mentions that these backup alerts don't work, but is that the case for everyone? Or could someone still be relying on this?

And if these envs are removed, then grafana-alerts.json.tmpl can also be removed?

I've seen mentions that these backup alerts don't work, but is that the case for everyone? Or could someone still be relying on this? And if these envs are removed, then grafana-alerts.json.tmpl can also be removed?
@ -87,1 +83,3 @@
#ALERT_NODE_MEMORY_USAGE_ENABLED=true
## ALerts
# Node disk space alert will trigger when free disk space left is below the given number in percent

Good enough for now. But 10% of a 20GB disk or a 2TB disk is a bit different. Can imagine we want a bit more fine-grained control depending on disk size and usage.

Good enough for now. But 10% of a 20GB disk or a 2TB disk is a bit different. Can imagine we want a bit more fine-grained control depending on disk size and usage.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin configurable-alerts:configurable-alerts
git checkout configurable-alerts
Sign in to join this conversation.
No description provided.