mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 23:11:57 +00:00
metrics: Fix the call to check_metrics function
This PR fixes the call to check_metrics function as KATA_HYPERVISOR is not needed to be passed. Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
5a61065ab7
commit
6acce83e12
@ -17,8 +17,8 @@ description = "measure container lifecycle timings"
|
|||||||
checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
|
checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 0.42
|
midval = 0.42
|
||||||
minpercent = 15.0
|
minpercent = 20.0
|
||||||
maxpercent = 15.0
|
maxpercent = 20.0
|
||||||
|
|
||||||
[[metric]]
|
[[metric]]
|
||||||
name = "memory-footprint"
|
name = "memory-footprint"
|
||||||
@ -30,5 +30,5 @@ description = "measure memory usage"
|
|||||||
checkvar = ".\"memory-footprint\".Results | .[] | .average.Result"
|
checkvar = ".\"memory-footprint\".Results | .[] | .average.Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 2518364.00
|
midval = 2518364.00
|
||||||
minpercent = 15.0
|
minpercent = 20.0
|
||||||
maxpercent = 15.0
|
maxpercent = 20.0
|
||||||
|
@ -17,8 +17,8 @@ description = "measure container lifecycle timings"
|
|||||||
checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
|
checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 0.61
|
midval = 0.61
|
||||||
minpercent = 15.0
|
minpercent = 20.0
|
||||||
maxpercent = 15.0
|
maxpercent = 20.0
|
||||||
|
|
||||||
[[metric]]
|
[[metric]]
|
||||||
name = "memory-footprint"
|
name = "memory-footprint"
|
||||||
@ -30,5 +30,5 @@ description = "measure memory usage"
|
|||||||
checkvar = ".\"memory-footprint\".Results | .[] | .average.Result"
|
checkvar = ".\"memory-footprint\".Results | .[] | .average.Result"
|
||||||
checktype = "mean"
|
checktype = "mean"
|
||||||
midval = 2435844.00
|
midval = 2435844.00
|
||||||
minpercent = 15.0
|
minpercent = 20.0
|
||||||
maxpercent = 15.0
|
maxpercent = 20.0
|
||||||
|
@ -95,7 +95,6 @@ function check_containerd_config_for_kata() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_metrics() {
|
function check_metrics() {
|
||||||
KATA_HYPERVISOR="${1}"
|
|
||||||
local cm_base_file="${checkmetrics_config_dir}/checkmetrics-json-${KATA_HYPERVISOR}-kata-metric8.toml"
|
local cm_base_file="${checkmetrics_config_dir}/checkmetrics-json-${KATA_HYPERVISOR}-kata-metric8.toml"
|
||||||
checkmetrics --debug --percentage --basefile "${cm_base_file}" --metricsdir "${results_dir}"
|
checkmetrics --debug --percentage --basefile "${cm_base_file}" --metricsdir "${results_dir}"
|
||||||
cm_result=$?
|
cm_result=$?
|
||||||
@ -109,8 +108,6 @@ function run_test_launchtimes() {
|
|||||||
|
|
||||||
create_symbolic_links
|
create_symbolic_links
|
||||||
bash tests/metrics/time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n 20
|
bash tests/metrics/time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n 20
|
||||||
|
|
||||||
check_metrics "${KATA_HYPERVISOR}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_test_memory_usage() {
|
function run_test_memory_usage() {
|
||||||
@ -118,6 +115,8 @@ function run_test_memory_usage() {
|
|||||||
|
|
||||||
create_symbolic_links
|
create_symbolic_links
|
||||||
bash tests/metrics/density/memory_usage.sh 20 5
|
bash tests/metrics/density/memory_usage.sh 20 5
|
||||||
|
|
||||||
|
check_metrics
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_test_memory_usage_inside_container() {
|
function run_test_memory_usage_inside_container() {
|
||||||
|
Loading…
Reference in New Issue
Block a user