blackbox.rules 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. groups:
  2. - name: blackboxExporter
  3. rules:
  4. - alert: clickhouseServerDown
  5. expr: probe_success{job="blackbox_clickhouse_instance"} != 1
  6. for: 30s
  7. labels:
  8. severity: warning
  9. type: ops
  10. annotations:
  11. summary: "clickhouse instance {{ $labels.instance }} is down"
  12. description: "clickhouse instance down\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
  13. - alert: ckkeeperServerDown
  14. expr: probe_success{job="blackbox_ckkeeper_instance"} != 1
  15. for: 30s
  16. labels:
  17. severity: warning
  18. type: ops
  19. annotations:
  20. summary: "clickhouse keeper instance {{ $labels.instance }} is down"
  21. description: "clickhouse keeper instance down\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
  22. - alert: postgresServerDown
  23. expr: probe_success{job="blackbox_postgres_instance"} != 1
  24. for: 30s
  25. labels:
  26. severity: warning
  27. type: ops
  28. annotations:
  29. summary: "postgres keeper instance {{ $labels.instance }} is down"
  30. description: "postgres keeper instance down\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"