Saltstack Official Galera Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

prometheus.yml 670B

12345678910111213141516171819202122
  1. {% raw %}
  2. server:
  3. alert:
  4. GaleraNodeNotReady:
  5. if: 'mysql_wsrep_ready != 1'
  6. for: 1m
  7. labels:
  8. severity: warning
  9. service: mysql
  10. annotations:
  11. summary: 'Galera on {{ $labels.host }} not ready'
  12. description: 'The Galera service on {{ $labels.host }} is not ready to serve queries.'
  13. GaleraNodeNotConnected:
  14. if: 'mysql_wsrep_connected != 1'
  15. for: 1m
  16. labels:
  17. severity: warning
  18. service: mysql
  19. annotations:
  20. summary: 'Galera on {{ $labels.host }} not connected'
  21. description: 'The Galera service on {{ $labels.host }} is not connected to the cluster.'
  22. {% endraw %}