cockroachdb.conf 2.2 KB

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