@@ -379,11 +379,11 @@ if [ -d "$INCLUDED_ALERTS_DIR" ]; then
379
379
CM_ARGS=(--from-file=" $INCLUDED_ALERTS_DIR " )
380
380
381
381
# Add optional custom directory if it exists
382
- if [ -d " $CUSTOM_ALERTS_DIR " ]; then
383
- log_debug " Including additional alert rules from '$CUSTOM_ALERTS_DIR '"
384
- CM_ARGS+=(--from-file=" $CUSTOM_ALERTS_DIR " )
382
+ if [ -d " $CUSTOM_ALERT_CONFIG_DIR " ]; then
383
+ log_debug " Including notifiers and additional alert rules from '$CUSTOM_ALERT_CONFIG_DIR '"
384
+ CM_ARGS+=(--from-file=" $CUSTOM_ALERT_CONFIG_DIR " )
385
385
else
386
- log_debug " No custom alert directory found at '$CUSTOM_ALERTS_DIR '. Skipping."
386
+ log_debug " No custom alert config directory found at '$CUSTOM_ALERT_CONFIG_DIR '. Skipping."
387
387
fi
388
388
389
389
# Run the kubectl command with all arguments
@@ -395,17 +395,6 @@ else
395
395
log_debug " No alert rules file found at '$INCLUDED_ALERTS_DIR '"
396
396
fi
397
397
398
- if [ -f " monitoring/alerting/notifiers.yaml" ]; then
399
- log_verbose " Creating Grafana notifiers ConfigMap"
400
- # This uses apply so it will do an update if it already exists
401
- kubectl create configmap grafana-notifiers \
402
- --from-file=notifiers.yaml=monitoring/alerting/notifiers.yaml \
403
- -n " $MON_NS " \
404
- --dry-run=client -o yaml | kubectl apply -f -
405
- else
406
- log_debug " No notifiers file found at monitoring/alerting/notifiers.yaml"
407
- fi
408
-
409
398
# shellcheck disable=SC2086
410
399
helm $helmDebug upgrade --install " $promRelease " \
411
400
--namespace " $MON_NS " \
0 commit comments