Skip to content

Commit

Permalink
Removed api from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
GilHoggarth committed Dec 8, 2023
1 parent 148d6f1 commit 8ead361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor/aws/alertmanager/config.yml-template
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
global:
resolve_timeout: 5m
slack_api_url: 'https://hooks.slack.com/services/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'
slack_api_url: ${SLACK_API_URL}

# The directory from which notification templates are read.
templates:
- '/etc/alertmanager/template/*.tmpl'

# https://grafana.com/blog/2020/02/25/step-by-step-guide-to-setting-up-prometheus-alertmanager-with-slack-pagerduty-and-gmail/
# to slack
route:
- group_by: ['alertname', 'job']
- group_wait: 30s
Expand Down
4 changes: 4 additions & 0 deletions monitor/aws/start_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if [[ "${GRAFANA_ADMIN_PASSWORD}" == "" ]]; then
echo -e "ERROR: GRAFANA_ADMIN_PASSWORD missing"
exit 1
fi
if [[ "${SLACK_API_URL}" == "" ]]; then
echo -e "ERROR: SLACK_API_URL missing"
exit 1
fi


# common
Expand Down

0 comments on commit 8ead361

Please sign in to comment.