k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/testing/request-benchmark/modules/measurements.yaml (about) 1 ## Measurement module defines test scoped measurement. 2 3 steps: 4 - name: Wait 1 minute 5 measurements: 6 - Identifier: Wait 7 Method: Sleep 8 Params: 9 duration: 1m 10 - name: "Starting measurement - {{.name}}" 11 measurements: 12 - Identifier: APIResponsivenessPrometheusSimple 13 Method: APIResponsivenessPrometheus 14 Params: 15 action: start 16 enableViolations: false 17 useSimpleLatencyQuery: true 18 - Identifier: ContainerCPU-{{.name}} 19 Method: GenericPrometheusQuery 20 Params: 21 action: start 22 metricName: Container CPU 23 metricVersion: v1 24 unit: cores 25 dimensions: 26 - container 27 queries: 28 - name: Perc99 29 query: quantile_over_time(0.99, sum by (container) (rate(container_cpu_usage_seconds_total[1m]))[%v:]) 30 - name: Perc90 31 query: quantile_over_time(0.90, sum by (container) (rate(container_cpu_usage_seconds_total[1m]))[%v:]) 32 - name: Perc50 33 query: quantile_over_time(0.50, sum by (container) (rate(container_cpu_usage_seconds_total[1m]))[%v:]) 34 - name: Wait 5 minutes 35 measurements: 36 - Identifier: Wait 37 Method: Sleep 38 Params: 39 duration: 5m 40 - name: "Gathering measurement - {{.name}}" 41 measurements: 42 - Identifier: ContainerCPU-{{.name}} 43 Method: GenericPrometheusQuery 44 Params: 45 action: gather 46 metricName: Container CPU 47 metricVersion: v1 48 unit: cores 49 dimensions: 50 - container 51 queries: 52 - name: Perc99 53 query: quantile_over_time(0.99, sum by (container) (rate(container_cpu_usage_seconds_total[1m]))[%v:]) 54 - name: Perc90 55 query: quantile_over_time(0.90, sum by (container) (rate(container_cpu_usage_seconds_total[1m]))[%v:]) 56 - name: Perc50 57 query: quantile_over_time(0.50, sum by (container) (rate(container_cpu_usage_seconds_total[1m]))[%v:]) 58 - Identifier: APIResponsivenessPrometheusSimple 59 Method: APIResponsivenessPrometheus 60 Params: 61 action: gather 62 enableViolations: false 63 useSimpleLatencyQuery: true