diff --git a/salt/base/scripts/sentry-checkin.sh.jinja b/salt/base/scripts/sentry-checkin.sh.jinja index 220b011d..5434b654 100644 --- a/salt/base/scripts/sentry-checkin.sh.jinja +++ b/salt/base/scripts/sentry-checkin.sh.jinja @@ -10,7 +10,20 @@ MONITOR_SLUG="salt-highstate-${MINION_ID//./}" if [ -n "$SENTRY_INGEST_URL" ] && [ -n "$SENTRY_PROJECT_ID" ] && [ -n "$SENTRY_PROJECT_KEY" ]; then curl -X POST "https://${SENTRY_INGEST_URL}/api/${SENTRY_PROJECT_ID}/cron/${MONITOR_SLUG}/${SENTRY_PROJECT_KEY}/" \ --header 'Content-Type: application/json' \ - --data-raw '{"monitor_config": {"schedule": {"type": "crontab", "value": "*/15 * * * *"}, "checkin_margin": 5, "max_runtime": 30, "timezone": "UTC"}, "status": "in_progress"}' &> /dev/null + --data-raw '{ + "monitor_config": { + "schedule": { + "type": "crontab", + "value": "*/15 * * * *" + }, + "checkin_margin": 5, + "max_runtime": 30, + "timezone": "UTC", + "failure_issue_threshold": 4, + "recovery_threshold": 1 + }, + "status": "in_progress" + }' &> /dev/null "$@" COMMAND_EXIT=$?