---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  annotations:
    exclude.release.openshift.io/internal-openshift-hosted: "true"
    include.release.openshift.io/self-managed-high-availability: "true"
    include.release.openshift.io/single-node-developer: "true"
  creationTimestamp: "2025-10-27T11:18:36Z"
  generation: 1
  managedFields:
  - apiVersion: monitoring.coreos.com/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:exclude.release.openshift.io/internal-openshift-hosted: {}
          f:include.release.openshift.io/self-managed-high-availability: {}
          f:include.release.openshift.io/single-node-developer: {}
        f:ownerReferences:
          .: {}
          k:{"uid":"d36bdf59-d268-4238-afb0-5e0b21cca1a4"}: {}
      f:spec:
        .: {}
        f:groups:
          .: {}
          k:{"name":"cluster-version"}:
            .: {}
            f:name: {}
            f:rules: {}
          k:{"name":"scheduler-legacy-policy-deprecated"}:
            .: {}
            f:name: {}
            f:rules: {}
    manager: cluster-version-operator
    operation: Update
    time: "2025-10-27T11:18:36Z"
  name: kube-scheduler-operator
  namespace: openshift-kube-scheduler-operator
  ownerReferences:
  - apiVersion: config.openshift.io/v1
    controller: true
    kind: ClusterVersion
    name: version
    uid: d36bdf59-d268-4238-afb0-5e0b21cca1a4
  resourceVersion: "1726"
  uid: 929281fc-4605-4fcd-9fa2-5275a5e14df0
spec:
  groups:
  - name: cluster-version
    rules:
    - alert: KubeSchedulerDown
      annotations:
        description: KubeScheduler has disappeared from Prometheus target discovery.
        runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-kube-scheduler-operator/KubeSchedulerDown.md
        summary: Target disappeared from Prometheus target discovery.
      expr: |
        absent(up{job="scheduler"} == 1)
      for: 15m
      labels:
        namespace: openshift-kube-scheduler
        severity: critical
  - name: scheduler-legacy-policy-deprecated
    rules:
    - alert: SchedulerLegacyPolicySet
      annotations:
        description: The scheduler is currently configured to use a legacy scheduler
          policy API. Use of the policy API is deprecated and removed in 4.10.
        summary: Legacy scheduler policy API in use by the scheduler.
      expr: |
        cluster_legacy_scheduler_policy > 0
      for: 60m
      labels:
        severity: warning
