Skip to content

Commit

Permalink
Add jsonnet-libs mixins
Browse files Browse the repository at this point in the history
Add blackbox exporter
Add mysql exporter
  • Loading branch information
v-zhuravlev committed May 4, 2024
1 parent b731a99 commit b3b4001
Show file tree
Hide file tree
Showing 440 changed files with 306,106 additions and 23,436 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 b3b4001

Please sign in to comment.