groups:
- name: certificate
  rules:
    - alert: DataplaneCertRotated
      annotations:
        description: The certificate {{ $labels.exported_namespace }} / {{ $labels.name }} has been rotated in the last 10 minutes.
      expr: changes(certmanager_certificate_renewal_timestamp_seconds{}[10m]) > 0 and (certmanager_certificate_renewal_timestamp_seconds offset 10m > 0)
      for: 0m
      labels:
        severity: warning # just for notify
        component: cert-manager
        oncall_team: dedicated_service
        intent: cluster-service-remind-only
