Saltstack Official Galera Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

prometheus.yml 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. server:
  2. alert:
  3. GaleraServiceDown:
  4. if: >-
  5. mysql_up != 1
  6. {%- raw %}
  7. labels:
  8. severity: minor
  9. service: mysql
  10. annotations:
  11. summary: "Galera service is down"
  12. description: "The Galera service on the {{ $labels.host }} node is down."
  13. {%- endraw %}
  14. GaleraServiceOutage:
  15. if: >-
  16. count(label_replace(mysql_up, "cluster", "$1", "host", "([^0-9]+).+")) by (cluster) == count(label_replace(mysql_up == 0, "cluster", "$1", "host", "([^0-9]+).+")) by (cluster)
  17. {%- raw %}
  18. labels:
  19. severity: critical
  20. service: mysql
  21. annotations:
  22. summary: "Galera service outage"
  23. description: "All Galera services within the {{ $labels.cluster }} cluster are down."
  24. {% endraw %}
  25. GaleraNodeNotReady:
  26. if: >-
  27. mysql_wsrep_ready != 1
  28. {%- raw %}
  29. for: 1m
  30. labels:
  31. severity: major
  32. service: mysql
  33. annotations:
  34. summary: "Galera service is not ready"
  35. description: "The Galera service on the {{ $labels.host }} node is not ready to serve queries for 1 minute."
  36. {%- endraw %}
  37. GaleraNodeNotConnected:
  38. if: >-
  39. mysql_wsrep_connected != 1
  40. {%- raw %}
  41. for: 1m
  42. labels:
  43. severity: major
  44. service: mysql
  45. annotations:
  46. summary: "Galera service is not connected"
  47. description: "The Galera service on the {{ $labels.host }} node is not connected to the cluster for 1 minute."
  48. {%- endraw %}