Skip to content

Commit ccd5905

Browse files
committed
uses USER_DIR now
1 parent 2a079b2 commit ccd5905

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

monitoring/bin/deploy_monitoring_cluster.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,13 @@ versionstring="$(get_helm_versionstring "$KUBE_PROM_STACK_CHART_VERSION")"
371371
log_debug "Installing Helm chart from artifact [$chart2install]"
372372

373373
# Alerts
374-
INCLUDED_ALERTS_DIR="monitoring/alerting/rules"
375-
if [ -d "$INCLUDED_ALERTS_DIR" ]; then
374+
if [ -d "monitoring/alerting/rules" ]; then
376375
log_verbose "Creating Grafana alert rules ConfigMap"
377376

378377
# Start with required file
379-
CM_ARGS=(--from-file="$INCLUDED_ALERTS_DIR")
378+
CM_ARGS=(--from-file="monitoring/alerting/rules")
379+
380+
CUSTOM_ALERT_CONFIG_DIR="$USER_DIR/monitoring/alerting/"
380381

381382
# Add optional custom directory if it exists
382383
if [ -d "$CUSTOM_ALERT_CONFIG_DIR" ]; then
@@ -392,7 +393,7 @@ if [ -d "$INCLUDED_ALERTS_DIR" ]; then
392393
-n "$MON_NS" \
393394
--dry-run=client -o yaml | kubectl apply -f -
394395
else
395-
log_debug "No alert rules file found at '$INCLUDED_ALERTS_DIR'"
396+
log_debug "No alert rules file found at 'monitoring/alerting/rules'"
396397
fi
397398

398399
# shellcheck disable=SC2086

0 commit comments

Comments
 (0)