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
diff --git a/charts/prometheus/prometheus.yaml b/charts/prometheus/prometheus.yaml
index aaeed5d..3623c4a 100644
--- a/charts/prometheus/prometheus.yaml
+++ b/charts/prometheus/prometheus.yaml
@@ -1089,6 +1089,14 @@
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