-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
440 changed files
with
306,106 additions
and
23,436 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,53 @@ | ||
groups: | ||
- name: MSSQLAlerts | ||
rules: | ||
- alert: MSSQLHighNumberOfDeadlocks | ||
annotations: | ||
description: '{{ printf "%.2f" $value }} deadlocks have occurred over the last | ||
5 minutes on {{$labels.instance}}, which is above threshold of 10 deadlocks.' | ||
summary: There are deadlocks ocurring in the database. | ||
expr: | | ||
increase(mssql_deadlocks_total{}[5m]) > 10 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
- alert: MSSQLModerateReadStallTime | ||
annotations: | ||
description: '{{ printf "%.2f" $value }}ms of IO read stall has occurred on | ||
{{$labels.instance}}, which is above threshold of 200ms.' | ||
summary: There is a moderate amount of IO stall for database reads. | ||
expr: | | ||
1000 * increase(mssql_io_stall_seconds_total{operation="read"}[5m]) > 200 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
- alert: MSSQLHighReadStallTime | ||
annotations: | ||
description: '{{ printf "%.2f" $value }}ms of IO read stall has occurred on | ||
{{$labels.instance}}, which is above threshold of 400ms.' | ||
summary: There is a high amount of IO stall for database reads. | ||
expr: | | ||
1000 * increase(mssql_io_stall_seconds_total{operation="read"}[5m]) > 400 | ||
for: 5m | ||
labels: | ||
severity: critical | ||
- alert: MSSQLModerateWriteStallTime | ||
annotations: | ||
description: '{{ printf "%.2f" $value }}ms of IO write stall has occurred on | ||
{{$labels.instance}}, which is above threshold of 200ms.' | ||
summary: There is a moderate amount of IO stall for database writes. | ||
expr: | | ||
1000 * increase(mssql_io_stall_seconds_total{operation="write"}[5m]) > 200 | ||
for: 5m | ||
labels: | ||
severity: warning | ||
- alert: MSSQLHighWriteStallTime | ||
annotations: | ||
description: '{{ printf "%.2f" $value }}ms of IO write stall has occurred on | ||
{{$labels.instance}}, which is above threshold of 400ms.' | ||
summary: There is a high amount of IO stall for database writes. | ||
expr: | | ||
1000 * increase(mssql_io_stall_seconds_total{operation="write"}[5m]) > 400 | ||
for: 5m | ||
labels: | ||
severity: critical |
Oops, something went wrong.