groups:
- name: backup-restore
  rules:
  - alert: PiTRContainerRestarted
    annotations:
      summary: PiTR container restarted
      message: The pitr container of TiDB cluster {{ $labels.tenant }}/{{ $labels.cluster }} restarted
    expr: |
      increase(kube_pod_container_status_restarts_total{container="backup-pitr"}[5m]) > 0
    labels:
      severity: critical
      response_class: page
      component: br
      oncall_team: tidb_x_tools
