github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/metrics/alertmanager/lightning.rules.yml (about)

     1  groups:
     2  - name: alert.rules
     3    rules:
     4    - alert: Lightning_import_failure_tables_count
     5      expr: sum ( lightning_tables{result="failure"} ) > 0
     6      for: 1m
     7      labels:
     8        env: ENV_LABELS_ENV
     9        level: emergency
    10        expr:  sum ( lightning_tables{result="failure"} ) > 0
    11      annotations:
    12        description: 'cluster: ENV_LABELS_ENV, instance: {{ $labels.instance }}, values:{{ $value }}'
    13        value: '{{ $value }}'
    14        summary: Lightning failed to import a table