Add alert on Gerrit threads in deadlock

This adds an alert that is firing, if 1 or more threads of a Gerrit
instance are in a deadlock.

Change-Id: Ie2e14e81381e07de2559b42b91d6e483639831ef
This commit is contained in:
Thomas Draebing 2020-06-24 13:21:09 +02:00
parent aab93a806b
commit ad0b8c71ee

View file

@ -1089,6 +1089,14 @@ serverFiles:
annotations:
description: '{{ $labels.instance }} has been unresponsive for 3 min.'
summary: '{{ $labels.instance }} down'
- alert: ThreadDeadlock
expr: proc_jvm_thread_num_deadlocked_threads > 0
for: 1m
labels:
severity: critical
annotations:
description: '{{ $labels.instance }} has deadlocked threads.'
summary: '{{ $labels.instance }} deadlocks'
- alert: SSHBatchUserScheduledTasks
expr: queue_ssh_batch_worker_scheduled_tasks > 200
for: 5m