Skip to content

Commit

Permalink
Remove KubeVirtComponentExceedsRequestedCPU from unit test yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Itamar Holder <iholder@redhat.com>
  • Loading branch information
iholder101 committed Dec 20, 2021
1 parent bad82ed commit 3ce3628
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions hack/prom-rule-ci/prom-rules-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,6 @@ group_eval_order:
- kubevirt.rules

tests:
# Pod is using more CPU than expected
- interval: 1m
input_series:
- series: 'node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace="ci",pod="virt-controller-8546c99968-x9jgg",node="node1"}'
values: "2 2 2 2 2 2 2 2 2 2"
- series: 'kube_pod_container_resource_requests{namespace="ci",container="virt-controller",resource="cpu",pod="virt-controller-8546c99968-x9jgg",node="node1"}'
values: "0 0 0 0 0 0"

alert_rule_test:
- eval_time: 5m
alertname: KubeVirtComponentExceedsRequestedCPU
exp_alerts:
- exp_annotations:
description: "Container virt-controller in pod virt-controller-8546c99968-x9jgg cpu usage exceeds the CPU requested"
summary: "The container is using more CPU than what is defined in the containers resource requests"
runbook_url: "https://kubevirt.io/monitoring/runbooks/KubeVirtComponentExceedsRequestedCPU"
exp_labels:
severity: "warning"
pod: "virt-controller-8546c99968-x9jgg"
container: "virt-controller"
namespace: ci
node: node1
resource: cpu

# Pod is using more memory than expected
- interval: 1m
input_series:
Expand Down

0 comments on commit 3ce3628

Please sign in to comment.