Saltstack Official Galera Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. log_collector:
  2. decoder:
  3. galera:
  4. engine: sandbox
  5. module_file: /usr/share/lma_collector/decoders/galera.lua
  6. module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
  7. adjust_timezone: true
  8. input:
  9. galera:
  10. engine: logstreamer
  11. log_directory: "/var/log"
  12. file_match: 'mysql/error\.log$'
  13. differentiator: ["galera"]
  14. decoder: "galera_decoder"
  15. splitter: "galera_splitter"
  16. splitter:
  17. galera:
  18. engine: regex
  19. delimiter: '\n([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})'
  20. delimiter_eol: false
  21. metric_collector:
  22. trigger:
  23. mysql_check:
  24. description: 'MySQL cannot be checked'
  25. severity: down
  26. rules:
  27. - metric: mysql_check
  28. relational_operator: '=='
  29. threshold: 0
  30. window: 60
  31. periods: 0
  32. function: last
  33. mysql_node_connected:
  34. description: 'The MySQL service has lost connectivity with the other nodes'
  35. severity: down
  36. rules:
  37. - metric: mysql_cluster_connected
  38. relational_operator: '=='
  39. threshold: 0
  40. window: 30
  41. periods: 1
  42. function: min
  43. mysql_node_ready:
  44. description: "The MySQL service isn't ready to serve queries"
  45. severity: down
  46. rules:
  47. - metric: mysql_cluster_ready
  48. relational_operator: '=='
  49. threshold: 0
  50. window: 30
  51. periods: 1
  52. function: min
  53. alarm:
  54. mysql_check:
  55. alerting: enabled
  56. triggers:
  57. - mysql_check
  58. dimension:
  59. service: mysql-check
  60. mysql_node_status:
  61. alerting: enabled
  62. triggers:
  63. - mysql_node_connected
  64. - mysql_node_ready
  65. dimension:
  66. service: mysql-node-status
  67. aggregator:
  68. alarm_cluster:
  69. mysql_check:
  70. policy: availability_of_members
  71. alerting: enabled
  72. match:
  73. service: mysql-check
  74. group_by: hostname
  75. members:
  76. - mysql_check
  77. dimension:
  78. service: mysql
  79. nagios_host: 01-service-clusters
  80. mysql_status:
  81. policy: availability_of_members
  82. alerting: enabled
  83. match:
  84. service: mysql-node-status
  85. group_by: hostname
  86. members:
  87. - mysql_node_status
  88. dimension:
  89. service: mysql
  90. nagios_host: 01-service-clusters
  91. mysql:
  92. policy: highest_severity
  93. alerting: enabled_with_notification
  94. match:
  95. service: mysql
  96. members:
  97. - mysql_check
  98. - mysql_status
  99. dimension:
  100. cluster_name: mysql
  101. nagios_host: 00-top-clusters