btrfs.conf 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. template: btrfs_allocated
  2. on: btrfs.disk
  3. class: Utilization
  4. type: System
  5. component: File system
  6. os: *
  7. hosts: *
  8. calc: 100 - ($unallocated * 100 / ($unallocated + $data_used + $data_free + $meta_used + $meta_free + $sys_used + $sys_free))
  9. units: %
  10. every: 10s
  11. warn: $this > (($status == $CRITICAL) ? (95) : (98))
  12. delay: up 1m down 15m multiplier 1.5 max 1h
  13. summary: BTRFS allocated space utilization
  14. info: Percentage of allocated BTRFS physical disk space
  15. to: silent
  16. template: btrfs_data
  17. on: btrfs.data
  18. class: Utilization
  19. type: System
  20. component: File system
  21. os: *
  22. hosts: *
  23. calc: $used * 100 / ($used + $free)
  24. units: %
  25. every: 10s
  26. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  27. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  28. delay: up 1m down 15m multiplier 1.5 max 1h
  29. summary: BTRFS data space utilization
  30. info: Utilization of BTRFS data space
  31. to: sysadmin
  32. template: btrfs_metadata
  33. on: btrfs.metadata
  34. class: Utilization
  35. type: System
  36. component: File system
  37. os: *
  38. hosts: *
  39. calc: ($used + $reserved) * 100 / ($used + $free + $reserved)
  40. units: %
  41. every: 10s
  42. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  43. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  44. delay: up 1m down 15m multiplier 1.5 max 1h
  45. summary: BTRFS metadata space utilization
  46. info: Utilization of BTRFS metadata space
  47. to: sysadmin
  48. template: btrfs_system
  49. on: btrfs.system
  50. class: Utilization
  51. type: System
  52. component: File system
  53. os: *
  54. hosts: *
  55. calc: $used * 100 / ($used + $free)
  56. units: %
  57. every: 10s
  58. warn: $this > (($status >= $WARNING) ? (90) : (95)) && $btrfs_allocated > 98
  59. crit: $this > (($status == $CRITICAL) ? (95) : (98)) && $btrfs_allocated > 98
  60. delay: up 1m down 15m multiplier 1.5 max 1h
  61. summary: BTRFS system space utilization
  62. info: Utilization of BTRFS system space
  63. to: sysadmin
  64. template: btrfs_device_read_errors
  65. on: btrfs.device_errors
  66. class: Errors
  67. type: System
  68. component: File system
  69. os: *
  70. hosts: *
  71. units: errors
  72. lookup: max -10m every 1m of read_errs
  73. warn: $this > 0
  74. delay: up 1m down 15m multiplier 1.5 max 1h
  75. summary: BTRFS device read errors
  76. info: Number of encountered BTRFS read errors
  77. to: sysadmin
  78. template: btrfs_device_write_errors
  79. on: btrfs.device_errors
  80. class: Errors
  81. type: System
  82. component: File system
  83. os: *
  84. hosts: *
  85. units: errors
  86. lookup: max -10m every 1m of write_errs
  87. crit: $this > 0
  88. delay: up 1m down 15m multiplier 1.5 max 1h
  89. summary: BTRFS device write errors
  90. info: Number of encountered BTRFS write errors
  91. to: sysadmin
  92. template: btrfs_device_flush_errors
  93. on: btrfs.device_errors
  94. class: Errors
  95. type: System
  96. component: File system
  97. os: *
  98. hosts: *
  99. units: errors
  100. lookup: max -10m every 1m of flush_errs
  101. crit: $this > 0
  102. delay: up 1m down 15m multiplier 1.5 max 1h
  103. summary: BTRFS device flush errors
  104. info: Number of encountered BTRFS flush errors
  105. to: sysadmin
  106. template: btrfs_device_corruption_errors
  107. on: btrfs.device_errors
  108. class: Errors
  109. type: System
  110. component: File system
  111. os: *
  112. hosts: *
  113. units: errors
  114. lookup: max -10m every 1m of corruption_errs
  115. warn: $this > 0
  116. delay: up 1m down 15m multiplier 1.5 max 1h
  117. summary: BTRFS device corruption errors
  118. info: Number of encountered BTRFS corruption errors
  119. to: sysadmin
  120. template: btrfs_device_generation_errors
  121. on: btrfs.device_errors
  122. class: Errors
  123. type: System
  124. component: File system
  125. os: *
  126. hosts: *
  127. units: errors
  128. lookup: max -10m every 1m of generation_errs
  129. warn: $this > 0
  130. delay: up 1m down 15m multiplier 1.5 max 1h
  131. summary: BTRFS device generation errors
  132. info: Number of encountered BTRFS generation errors
  133. to: sysadmin