health: fix cockroachdb replication alarms (#11360)
Ilya Mashchenko committed
Jul 22, 2021 at 14:55 UTC
0c7db731f8dabbd8debe668f5d8fe60ebffb7878
1 file changed
+14
-1
health/health.d/cockroachdb.conf
+14
-1
@@ -33,11 +33,24 @@ component: CockroachDB
33
34
template: cockroachdb_unavailable_ranges
35
on: cockroachdb.ranges_replication_problem
36
- class: Utilization
36
+ class: Errors
37
type: Database
38
component: CockroachDB
39
calc: $ranges_unavailable
40
units: num
41
+ every: 10s
42
+ warn: $this > 0
43
+ delay: down 15m multiplier 1.5 max 1h
44
+ info: number of ranges with fewer live replicas than needed for quorum
45
+ to: dba
46
+
47
+ template: cockroachdb_underreplicated_ranges
48
+ on: cockroachdb.ranges_replication_problem
49
+ class: Errors
50
+ type: Database
51
+component: CockroachDB
52
+ calc: $ranges_underreplicated
53
+ units: num
54
every: 10s
55
warn: $this > 0
56
delay: down 15m multiplier 1.5 max 1h