-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate with Loki and add alert rules based on logs (#662)
- Loading branch information
Showing
4 changed files
with
26 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
alert: SynapseErrorFound | ||
expr: rate({%%juju_topology%%, pebble_service="synapse"} |= " - ERROR - "[5m]) > 0 | ||
for: 5m | ||
labels: | ||
severity: error | ||
annotations: | ||
summary: Synapse errors detected. | ||
description: This alert is triggered when Synapse logs an error level message in the last 5 minutes. |
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,8 @@ | ||
alert: SynapseMjolnirErrorFound | ||
expr: rate({%%juju_topology%%, pebble_service="mjolnir"} |= "[ERROR]"[5m]) > 0 | ||
for: 5m | ||
labels: | ||
severity: error | ||
annotations: | ||
summary: Synapse Mjolnir error detected. | ||
description: This alert is triggered when Synapse Mjolnir logs an error level message in the last 5 minutes. |
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,8 @@ | ||
alert: SynapseNGINXEmergFound | ||
expr: rate({%%juju_topology%%, pebble_service="synapse-nginx"} |= "[emerg]"[5m]) > 0 | ||
for: 5m | ||
labels: | ||
severity: critical | ||
annotations: | ||
summary: Synapse NGINX emerg detected. | ||
description: This alert is triggered when Synapse NGINX logs an emerg level message in the last 5 minutes. |
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