From 0be94a19ea766be0672abe391207402073416263 Mon Sep 17 00:00:00 2001 From: kubevirt-bot Date: Thu, 6 Apr 2023 08:24:49 +0100 Subject: [PATCH] Use integer values for CPU requests in prom-rules-tests (#2308) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Vilaça Co-authored-by: João Vilaça --- hack/prom-rule-ci/prom-rules-tests.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hack/prom-rule-ci/prom-rules-tests.yaml b/hack/prom-rule-ci/prom-rules-tests.yaml index 58ee397914..f330d81ecd 100755 --- a/hack/prom-rule-ci/prom-rules-tests.yaml +++ b/hack/prom-rule-ci/prom-rules-tests.yaml @@ -525,12 +525,12 @@ tests: input_series: # take all containers of running virt-launcher pods - series: 'kube_pod_container_resource_requests{pod="virt-launcher-x-y", resource="cpu", container="compute"}' - # time: 0 1 2 3 4 5 - values: "0.1 0.1 0.1 0.1 0.1 0.1" + # time: 0 1 2 3 4 5 + values: "1 1 1 1 1 1" # take all containers of running virt-launcher pods - series: 'kube_pod_container_resource_requests{pod="virt-launcher-x-y", resource="cpu", container="volumecontainerdisk"}' - # time: 0 1 2 3 4 5 - values: "0.01 0.01 0.01 0.01 0.01 0.01" + # time: 0 1 2 3 4 5 + values: "1 1 1 1 1 1" - series: 'kube_pod_labels{label_kubevirt_io="virt-launcher",pod="virt-launcher-x-y"}' # time: 0 1 2 3 4 5 values: "1 1 1 1 1 1" @@ -549,8 +549,8 @@ tests: values: "1 1 1 1 1 1" # new VMIs can be created in time - series: 'kube_pod_container_resource_requests{pod="virt-launcher-new", resource="cpu", container="volumecontainerdisk"}' - # time: 0 1 2 3 4 5 - values: "stale stale stale 0.01 0.01 0.01" + # time: 0 1 2 3 4 5 + values: "stale stale stale 1 1 1" - series: 'kube_pod_labels{label_kubevirt_io="virt-launcher",pod="virt-launcher-new"}' # time: 0 1 2 3 4 5 values: "stale stale stale 1 1 1" @@ -562,25 +562,25 @@ tests: eval_time: 1m exp_samples: - labels: 'cluster:vmi_request_cpu_cores:sum{}' - value: 0.11 + value: 2 # update for new pods - expr: 'cluster:vmi_request_cpu_cores:sum' eval_time: 3m exp_samples: - labels: 'cluster:vmi_request_cpu_cores:sum{}' - value: 0.12 + value: 3 # virt-launcher-new is not running at 4m. must exclude it - expr: 'cluster:vmi_request_cpu_cores:sum' eval_time: 4m exp_samples: - labels: 'cluster:vmi_request_cpu_cores:sum{}' - value: 0.11 + value: 2 # virt-launcher-new is back at 5m. must include it - expr: 'cluster:vmi_request_cpu_cores:sum' eval_time: 5m exp_samples: - labels: 'cluster:vmi_request_cpu_cores:sum{}' - value: 0.12 + value: 3 # Test kubevirt_hyperconverged_operator_health_status recording rule - interval: 1m