Saltstack Official Galera Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

81 linhas
2.0KB

  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: critical
  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: critical
  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
  60. mysql_node_status:
  61. alerting: enabled
  62. triggers:
  63. - mysql_node_connected
  64. - mysql_node_ready
  65. dimension:
  66. service: mysql
  67. aggregator:
  68. alarm_cluster:
  69. mysql:
  70. policy: majority_of_members
  71. alerting: enabled_with_notification
  72. match:
  73. service: mysql
  74. group_by: hostname
  75. members:
  76. - mysql_check
  77. - mysql_node_status
  78. dimension:
  79. cluster_name: mysql
  80. nagios_host: 00-top-clusters