| 1 | |
| 2 | # Capacity |
| 3 | |
| 4 | template: cockroachdb_used_storage_capacity |
| 5 | on: cockroachdb.storage_used_capacity_percentage |
| 6 | class: Utilization |
| 7 | type: Database |
| 8 | component: CockroachDB |
| 9 | calc: $total |
| 10 | units: % |
| 11 | every: 10s |
| 12 | warn: $this > (($status >= $WARNING) ? (80) : (85)) |
| 13 | crit: $this > (($status == $CRITICAL) ? (85) : (95)) |
| 14 | delay: down 15m multiplier 1.5 max 1h |
| 15 | summary: CockroachDB storage space utilization |
| 16 | info: Storage capacity utilization |
| 17 | to: dba |
| 18 | |
| 19 | template: cockroachdb_used_usable_storage_capacity |
| 20 | on: cockroachdb.storage_used_capacity_percentage |
| 21 | class: Utilization |
| 22 | type: Database |
| 23 | component: CockroachDB |
| 24 | calc: $usable |
| 25 | units: % |
| 26 | every: 10s |
| 27 | warn: $this > (($status >= $WARNING) ? (80) : (85)) |
| 28 | crit: $this > (($status == $CRITICAL) ? (85) : (95)) |
| 29 | delay: down 15m multiplier 1.5 max 1h |
| 30 | summary: CockroachDB usable storage space utilization |
| 31 | info: Storage usable space utilization |
| 32 | to: dba |
| 33 | |
| 34 | # Replication |
| 35 | |
| 36 | template: cockroachdb_unavailable_ranges |
| 37 | on: cockroachdb.ranges_replication_problem |
| 38 | class: Errors |
| 39 | type: Database |
| 40 | component: CockroachDB |
| 41 | calc: $unavailable |
| 42 | units: num |
| 43 | every: 10s |
| 44 | warn: $this > 0 |
| 45 | delay: down 15m multiplier 1.5 max 1h |
| 46 | summary: CockroachDB unavailable replication |
| 47 | info: Number of ranges with fewer live replicas than needed for quorum |
| 48 | to: dba |
| 49 | |
| 50 | template: cockroachdb_underreplicated_ranges |
| 51 | on: cockroachdb.ranges_replication_problem |
| 52 | class: Errors |
| 53 | type: Database |
| 54 | component: CockroachDB |
| 55 | calc: $under_replicated |
| 56 | units: num |
| 57 | every: 10s |
| 58 | warn: $this > 0 |
| 59 | delay: down 15m multiplier 1.5 max 1h |
| 60 | summary: CockroachDB under-replicated |
| 61 | info: Number of ranges with fewer live replicas than the replication target |
| 62 | to: dba |
| 63 | |
| 64 | # FD |
| 65 | |
| 66 | template: cockroachdb_open_file_descriptors_limit |
| 67 | on: cockroachdb.process_file_descriptors |
| 68 | class: Utilization |
| 69 | type: Database |
| 70 | component: CockroachDB |
| 71 | calc: $open/$sys_fd_softlimit * 100 |
| 72 | units: % |
| 73 | every: 10s |
| 74 | warn: $this > 80 |
| 75 | delay: down 15m multiplier 1.5 max 1h |
| 76 | summary: CockroachDB file descriptors utilization |
| 77 | info: Open file descriptors utilization (against softlimit) |
| 78 | to: dba |