-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from OpenSLO/sumo-agaurav
[sumologic] add support to override email msg body & connection payload
- Loading branch information
Showing
8 changed files
with
111 additions
and
31 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,31 @@ alerts: | |
longLimit: 14 | ||
notifications: | ||
- connectionType: 'Email' | ||
messageBody: "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}" | ||
recipients: | ||
- '[email protected]' | ||
timeZone: 'PST' | ||
triggerFor: | ||
- Warning | ||
- ResolvedWarning | ||
- connectionType: 'PagerDuty' | ||
connectionID: '000000000001ABCD' # id of pagerduty connection created in Sumo Logic | ||
triggerFor: | ||
- Warning | ||
- ResolvedWarning | ||
payload_override: | | ||
{ | ||
"service_key": "your_pagerduty_api_integration_key", | ||
"event_type": "trigger", | ||
"description": "Alert: Triggered {{TriggerType}} for Monitor {{Name}}", | ||
"client": "Sumo Logic", | ||
"client_url": "{{QueryUrl}}" | ||
} | ||
resolution_payload_override: | | ||
{ | ||
"service_key": "your_pagerduty_api_integration_key", | ||
"event_type": "resolve", | ||
"description": "Alert: Resolved {{TriggerType}} for Monitor {{Name}}", | ||
"client": "Sumo Logic", | ||
"client_url": "{{QueryUrl}}" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ metadata: | |
annotations: | ||
recipients: "[email protected]" | ||
subject: "Monitor Alert: {{TriggerType}} on {{Name}}" | ||
message_body: "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}" | ||
message_body: "Triggered {{TriggerType}} Alert on the {{Name}}: {{QueryURL}}" | ||
time_zone: "PST" | ||
run_for_triggers: "Critical,ResolvedCritical" |
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