apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: alert2
  namespace: openshift-monitoring
  labels:
    prometheus: k8s
    role: alert-rules
spec:
  groups:
  - name: node.rules
    rules:
    - alert: alert2
      expr: (100 - (avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)) > 0.01
      for: 1m
      labels:
        severity: critical
      annotations:
        summary: "Node CPU usage is high"
        description: "Node CPU usage is above 0.01% (current value: {{ $value }}%)"

