-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:opencrvs/opencrvs-countryconfig …
…into ocrvs-7584
- Loading branch information
Showing
6 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
infrastructure/monitoring/elastalert/rules/log-error-alert.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
# | ||
# OpenCRVS is also distributed under the terms of the Civil Registration | ||
# & Healthcare Disclaimer located at http://opencrvs.org/license. | ||
# | ||
# Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. | ||
name: 'log-error-alert' | ||
type: 'frequency' | ||
index: 'kibana-alert-history-default' | ||
is_enabled: true | ||
num_events: 1 | ||
realert: | ||
minutes: 5 | ||
terms_size: 50 | ||
timeframe: | ||
minutes: 5 | ||
timestamp_field: '@timestamp' | ||
timestamp_type: 'iso' | ||
use_strftime_index: false | ||
# https://github.com/Yelp/elastalert/issues/1260 | ||
raw_count_keys: false | ||
filter: | ||
- bool: | ||
should: | ||
- term: | ||
rule.name.keyword: | ||
value: 'Error while backup ' | ||
|
||
|
||
alert: post2 | ||
http_post2_url: 'http://countryconfig:3040/email' | ||
http_post2_payload: | ||
subject: '{% raw %}{{DOMAIN}}{% endraw %}: {{rule.name}} 🚨' | ||
html: 'Reason: {{kibana.alert.context.logs__alert__document__count.conditions}}. Login to https://kibana.{% raw %}{{DOMAIN}}{% endraw %} to view the alert.' | ||
from: '{% raw %}{{SENDER_EMAIL_ADDRESS}}{% endraw %}' | ||
to: '{% raw %}{{ALERT_EMAIL}}{% endraw %}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters