---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  annotations:
    exclude.release.openshift.io/internal-openshift-hosted: "true"
  creationTimestamp: "2022-03-08T10:14:06Z"
  generation: 1
  labels:
    prometheus: k8s
    role: alert-rules
  managedFields:
  - apiVersion: monitoring.coreos.com/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:exclude.release.openshift.io/internal-openshift-hosted: {}
        f:labels:
          .: {}
          f:prometheus: {}
          f:role: {}
      f:spec:
        .: {}
        f:groups: {}
    manager: cluster-version-operator
    operation: Update
    time: "2022-03-08T10:14:06Z"
  name: machineapprover-rules
  namespace: openshift-cluster-machine-approver
  resourceVersion: "1429"
  selfLink: /apis/monitoring.coreos.com/v1/namespaces/openshift-cluster-machine-approver/prometheusrules/machineapprover-rules
  uid: 8c85d88b-c516-4305-8f06-09d79731178f
spec:
  groups:
  - name: cluster-machine-approver.rules
    rules:
    - alert: ClusterMachineApproverDown
      annotations:
        message: ClusterMachineApprover has disappeared from Prometheus target discovery.
      expr: |
        absent(up{job="machine-approver"} == 1)
      for: 10m
      labels:
        severity: critical
    - alert: MachineApproverMaxPendingCSRsReached
      annotations:
        message: max pending CSRs threshold reached.
      expr: |
        mapi_current_pending_csr > mapi_max_pending_csr
      for: 5m
      labels:
        severity: warning
