github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/cmd/checkmetrics/baseline/checkmetrics_json.toml (about)

     1  # This file contains example configurations for the checkmetrics tool.
     2  # Each [[metric]] section represents one check.
     3  # Note, a .json results file can be referenced from more than one section,
     4  # enabling multiple different checks to be performed on a results file.
     5  
     6  [[metric]]
     7  # The name of the metrics test, must match
     8  # that of the generated JSON file
     9  name = "boot-times"
    10  type = "json"
    11  description = "measure container lifecycle timings"
    12  # Min and Max values to set a 'range' that
    13  # the mean of the Results data must fall
    14  # within (inclusive)
    15  checkvar = ".\"boot-times\".Results | .[] | .\"to-workload\".Result"
    16  checktype = "mean"
    17  minval = 0.5
    18  maxval = 0.7
    19  
    20  [[metric]]
    21  name = "memory-footprint"
    22  # If no Type set, then we default to json
    23  #type = "json"
    24  description = "measure container average footprint"
    25  # Min and Max values to set a 'range' that
    26  # the median of the CSV Results data must fall
    27  # within (inclusive)
    28  checkvar = ".\"memory-footprint\".Results | .[] | .average.Result"
    29  checktype = "mean"
    30  minval = 100000.0
    31  maxval = 110000.0
    32  
    33  [[metric]]
    34  name = "memory-footprint-ksm"
    35  type = "json"
    36  description = "measure container average footprint with KSM"
    37  # Min and Max values to set a 'range' that
    38  # the median of the CSV Results data must fall
    39  # within (inclusive)
    40  checkvar = ".\"memory-footprint-ksm\".Results | .[] | .average.Result"
    41  checktype = "mean"
    42  midval = 100000.0
    43  minpercent = 5.0
    44  maxpercent = 10.0
    45  
    46  
    47  # ... repeat this for each metric check ...