summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2021-07-22 14:55:02 +0300
committerGitHub <noreply@github.com>2021-07-22 14:55:02 +0300
commit0c7db731f8dabbd8debe668f5d8fe60ebffb7878 (patch)
treeddd25641868c810a66d97b6e8eb5d428fba2ca03 /health
parent55bb2c3875b867629d9b9033eaf8405eb9e1972a (diff)
health: fix cockroachdb replication alarms (#11360)
Diffstat (limited to 'health')
-rw-r--r--health/health.d/cockroachdb.conf15
1 files changed, 14 insertions, 1 deletions
diff --git a/health/health.d/cockroachdb.conf b/health/health.d/cockroachdb.conf
index 3d95d4f29d..1f227841e6 100644
--- a/health/health.d/cockroachdb.conf
+++ b/health/health.d/cockroachdb.conf
@@ -33,7 +33,7 @@ component: CockroachDB
template: cockroachdb_unavailable_ranges
on: cockroachdb.ranges_replication_problem
- class: Utilization
+ class: Errors
type: Database
component: CockroachDB
calc: $ranges_unavailable
@@ -41,6 +41,19 @@ component: CockroachDB
every: 10s
warn: $this > 0
delay: down 15m multiplier 1.5 max 1h
+ info: number of ranges with fewer live replicas than needed for quorum
+ to: dba
+
+ template: cockroachdb_underreplicated_ranges
+ on: cockroachdb.ranges_replication_problem
+ class: Errors
+ type: Database
+component: CockroachDB
+ calc: $ranges_underreplicated
+ units: num
+ every: 10s
+ warn: $this > 0
+ delay: down 15m multiplier 1.5 max 1h
info: number of ranges with fewer live replicas than the replication target
to: dba