This repository was archived by the owner on Jun 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +41
-4
lines changed
cmd/checkmetrics/ci_worker Expand file tree Collapse file tree 2 files changed +41
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ description = "measure network latency"
56
56
checkvar = " .\" latency\" .Results | .[] | .latency.Result"
57
57
checktype = " mean"
58
58
midval = 0.73
59
- minpercent = 10 .0
59
+ minpercent = 20 .0
60
60
maxpercent = 10.0
61
61
62
62
[[metric ]]
@@ -96,7 +96,7 @@ checkvar = ".\"fio\".Results | .[] | .readio.Result"
96
96
checktype = " mean"
97
97
midval = 7811072.0
98
98
minpercent = 20.0
99
- maxpercent = 10 .0
99
+ maxpercent = 20 .0
100
100
101
101
[[metric ]]
102
102
name = " fio"
@@ -109,8 +109,35 @@ checkvar = ".\"fio\".Results | .[] | .readbw.Result"
109
109
checktype = " mean"
110
110
midval = 88479751.0
111
111
minpercent = 25.0
112
+ maxpercent = 25.0
113
+
114
+ [[metric ]]
115
+ name = " fio"
116
+ type = " json"
117
+ description = " measure write-io using fio"
118
+ # Min and Max values to set a 'range' that
119
+ # the median of the CSV Results data must fall
120
+ # within (inclusive)
121
+ checkvar = " .\" fio\" .Results | .[] | .writeio.Result"
122
+ checktype = " mean"
123
+ midval = 2674688.0
124
+ minpercent = 20.0
112
125
maxpercent = 10.0
113
126
127
+ [[metric ]]
128
+ name = " fio"
129
+ type = " json"
130
+ description = " measure write-bw using fio"
131
+ # Min and Max values to set a 'range' that
132
+ # the median of the CSV Results data must fall
133
+ # within (inclusive)
134
+ checkvar = " .\" fio\" .Results | .[] | .writebw.Result"
135
+ checktype = " mean"
136
+ midval = 35543338.0
137
+ minpercent = 40.0
138
+ maxpercent = 30.0
139
+
140
+
114
141
[[metric ]]
115
142
name = " network-iperf3"
116
143
type = " json"
@@ -135,7 +162,7 @@ checkvar = ".\"fio\".Results | .[] | .read90percentile.Result"
135
162
checktype = " mean"
136
163
midval = 56668.0
137
164
minpercent = 50.0
138
- maxpercent = 50 .0
165
+ maxpercent = 60 .0
139
166
140
167
[[metric ]]
141
168
name = " fio"
@@ -148,7 +175,7 @@ checkvar = ".\"fio\".Results | .[] | .read95percentile.Result"
148
175
checktype = " mean"
149
176
midval = 84454.0
150
177
minpercent = 50.0
151
- maxpercent = 50 .0
178
+ maxpercent = 60 .0
152
179
153
180
[[metric ]]
154
181
name = " network-iperf3"
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ function main() {
38
38
local read_bw=$( cat $test_result_file | grep bw_bytes | head -1 | sed ' s/[[:blank:]]//g' | cut -f2 -d ' :' | cut -f1 -d ' ,' )
39
39
local read_90_percentile=$( cat $test_result_file | grep 90.000000 | head -1 | sed ' s/[[:blank:]]//g' | cut -f2 -d ' :' | cut -f1 -d ' ,' )
40
40
local read_95_percentile=$( cat $test_result_file | grep 95.000000 | head -1 | sed ' s/[[:blank:]]//g' | cut -f2 -d ' :' | cut -f1 -d ' ,' )
41
+ local write_io=$( cat $test_result_file | grep io_bytes | head -2 | tail -1 | sed ' s/[[:blank:]]//g' | cut -f2 -d ' :' | cut -f1 -d ' ,' )
42
+ local write_bw=$( cat $test_result_file | grep bw_bytes | head -2 | tail -1 | sed ' s/[[:blank:]]//g' | cut -f2 -d ' :' | cut -f1 -d ' ,' )
41
43
42
44
metrics_json_start_array
43
45
local json=" $( cat << EOF
@@ -57,6 +59,14 @@ function main() {
57
59
"read95percentile": {
58
60
"Result" : $read_95_percentile ,
59
61
"Units" : "ns"
62
+ },
63
+ "writeio": {
64
+ "Result" : $write_io ,
65
+ "Units" : "bytes"
66
+ },
67
+ "writebw": {
68
+ "Result" : $write_bw ,
69
+ "Units" : "bytes/sec"
60
70
}
61
71
}
62
72
EOF
You can’t perform that action at this time.
0 commit comments