Skip to content

Commit

Permalink
Merge pull request #41 from v-zhuravlev/jsonnet-ilbs
Browse files Browse the repository at this point in the history
Add jsonnet-libs mixins
  • Loading branch information
rgeyer authored Oct 24, 2024
2 parents b731a99 + a13429f commit 25d0e39
Show file tree
Hide file tree
Showing 444 changed files with 307,557 additions and 23,434 deletions.
53 changes: 53 additions & 0 deletions assets/MSSQL/alerts.yaml
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
Loading

0 comments on commit 25d0e39

Please sign in to comment.