File tree 1 file changed +9
-0
lines changed
tools/run_tests/performance
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 31
31
import json
32
32
import logging
33
33
import statistics
34
+ import time
34
35
from typing import Any , Dict , List
35
36
36
37
from dateutil import parser
@@ -269,6 +270,12 @@ def main() -> None:
269
270
default = False ,
270
271
help = 'Suppress informative output' ,
271
272
)
273
+ argp .add_argument (
274
+ '--delay_seconds' ,
275
+ default = 0 ,
276
+ type = int ,
277
+ help = 'Configure delay in seconds to perform Prometheus queries, default is 0s' ,
278
+ )
272
279
args = argp .parse_args ()
273
280
274
281
if not args .quiet :
@@ -285,6 +292,8 @@ def main() -> None:
285
292
end = end_time ,
286
293
)
287
294
295
+ time .sleep (args .delay_seconds )
296
+
288
297
pod_dict = construct_pod_dict (args .node_info_file , args .pod_type )
289
298
processed_data = p .fetch_cpu_and_memory_data (
290
299
container_list = args .container_name , pod_dict = pod_dict )
You can’t perform that action at this time.
0 commit comments