Browse Source

fix cockroachdb alarms (#15095)

Ilya Mashchenko 1 year ago
parent
commit
7e1e90cce4
1 changed files with 5 additions and 5 deletions
  1. 5 5
      health/health.d/cockroachdb.conf

+ 5 - 5
health/health.d/cockroachdb.conf

@@ -6,7 +6,7 @@
     class: Utilization
      type: Database
 component: CockroachDB
-     calc: $capacity_used_percent
+     calc: $total
     units: %
     every: 10s
      warn: $this > (($status >= $WARNING)  ? (80) : (85))
@@ -20,7 +20,7 @@ component: CockroachDB
     class: Utilization
      type: Database
 component: CockroachDB
-     calc: $capacity_usable_used_percent
+     calc: $usable
     units: %
     every: 10s
      warn: $this > (($status >= $WARNING)  ? (80) : (85))
@@ -36,7 +36,7 @@ component: CockroachDB
     class: Errors
      type: Database
 component: CockroachDB
-     calc: $ranges_unavailable
+     calc: $unavailable
     units: num
     every: 10s
      warn: $this > 0
@@ -49,7 +49,7 @@ component: CockroachDB
     class: Errors
      type: Database
 component: CockroachDB
-     calc: $ranges_underreplicated
+     calc: $under_replicated
     units: num
     every: 10s
      warn: $this > 0
@@ -64,7 +64,7 @@ component: CockroachDB
     class: Utilization
      type: Database
 component: CockroachDB
-     calc: $sys_fd_open/$sys_fd_softlimit * 100
+     calc: $open/$sys_fd_softlimit * 100
     units: %
     every: 10s
      warn: $this > 80