mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
metrics: Replace backslashes used to escape double quoted key in jq expr.
This PR uses squared brackets in a jq expression to access key values corresponding to metric results in json format. The values are the data inputs into the checkmetrics tool. Fixes: #7319 Signed-off-by: David Esparza <david.esparza.borquez@intel.com>
This commit is contained in:
parent
b9535fb187
commit
468f017e21
@ -14,7 +14,7 @@ description = "measure container lifecycle timings"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
|
||||
checkvar = ".["boot-times"].Results | .[] | .["to-workload"].Result"
|
||||
checktype = "mean"
|
||||
midval = 0.42
|
||||
minpercent = 20.0
|
||||
@ -27,7 +27,7 @@ description = "measure memory usage"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"memory-footprint\".Results | .[] | .average.Result"
|
||||
checkvar = ".["memory-footprint"].Results | .[] | .average.Result"
|
||||
checktype = "mean"
|
||||
midval = 2518364.00
|
||||
minpercent = 20.0
|
||||
@ -40,7 +40,7 @@ description = "measure memory inside the container"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"memory-footprint-inside-container\".Results | .[] | .memtotal.Result"
|
||||
checkvar = ".["memory-footprint-inside-container"].Results | .[] | .memtotal.Result"
|
||||
checktype = "mean"
|
||||
midval = 4135244.0
|
||||
minpercent = 20.0
|
||||
@ -53,7 +53,7 @@ description = "measure container average of blogbench write"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"blogbench\".Results | .[] | .write.Result"
|
||||
checkvar = ".["blogbench"].Results | .[] | .write.Result"
|
||||
checktype = "mean"
|
||||
midval = 1623.0
|
||||
minpercent = 20.0
|
||||
@ -66,7 +66,7 @@ description = "measure container average of blogbench read"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"blogbench\".Results | .[] | .read.Result"
|
||||
checkvar = ".["blogbench"].Results | .[] | .read.Result"
|
||||
checktype = "mean"
|
||||
midval = 96939.0
|
||||
minpercent = 20.0
|
||||
|
@ -14,7 +14,7 @@ description = "measure container lifecycle timings"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
|
||||
checkvar = ".["boot-times"].Results | .[] | .["to-workload"].Result"
|
||||
checktype = "mean"
|
||||
midval = 0.61
|
||||
minpercent = 20.0
|
||||
@ -27,7 +27,7 @@ description = "measure memory usage"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"memory-footprint\".Results | .[] | .average.Result"
|
||||
checkvar = ".["memory-footprint"].Results | .[] | .average.Result"
|
||||
checktype = "mean"
|
||||
midval = 2435844.00
|
||||
minpercent = 20.0
|
||||
@ -40,7 +40,7 @@ description = "measure memory inside the container"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"memory-footprint-inside-container\".Results | .[] | .memtotal.Result"
|
||||
checkvar = ".["memory-footprint-inside-container"].Results | .[] | .memtotal.Result"
|
||||
checktype = "mean"
|
||||
midval = 3677280.0
|
||||
minpercent = 25.0
|
||||
@ -53,7 +53,7 @@ description = "measure container average of blogbench write"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"blogbench\".Results | .[] | .write.Result"
|
||||
checkvar = ".["blogbench"].Results | .[] | .write.Result"
|
||||
checktype = "mean"
|
||||
midval = 1639.0
|
||||
minpercent = 20.0
|
||||
@ -66,7 +66,7 @@ description = "measure container average of blogbench read"
|
||||
# Min and Max values to set a 'range' that
|
||||
# the median of the CSV Results data must fall
|
||||
# within (inclusive)
|
||||
checkvar = ".\"blogbench\".Results | .[] | .read.Result"
|
||||
checkvar = ".["blogbench"].Results | .[] | .read.Result"
|
||||
checktype = "mean"
|
||||
midval = 98687.0
|
||||
minpercent = 20.0
|
||||
|
Loading…
Reference in New Issue
Block a user