Commit f462417b authored by hardy's avatar hardy

update runtime stats graphs

parent 010e0cca
...@@ -483,12 +483,13 @@ class RANManagement(): ...@@ -483,12 +483,13 @@ class RANManagement():
#stats monitoring during runtime #stats monitoring during runtime
time.sleep(20) time.sleep(20)
monitor_file='stats_monitor.py' monitor_file='../ci-scripts/stats_monitor.py'
conf_file='../ci-scripts/stats_monitor_conf.yaml'
if self.eNB_Stats=='yes': if self.eNB_Stats=='yes':
if (self.air_interface[self.eNB_instance] == 'lte-softmodem') or (self.air_interface[self.eNB_instance] == 'ocp-enb'): if (self.air_interface[self.eNB_instance] == 'lte-softmodem') or (self.air_interface[self.eNB_instance] == 'ocp-enb'):
mySSH.command('echo $USER; nohup python3 ../ci-scripts/' + monitor_file + ' enb 2>&1 > enb_stats_monitor_execution.log &', '\$', 5) mySSH.command('echo $USER; nohup python3 ' + monitor_file + ' ' + conf_file + ' enb 2>&1 > enb_stats_monitor_execution.log &', '\$', 5)
else: else:
mySSH.command('echo $USER; nohup python3 ../ci-scripts/' + monitor_file + ' gnb 2>&1 > gnb_stats_monitor_execution.log &', '\$', 5) mySSH.command('echo $USER; nohup python3 ' + monitor_file + ' ' + conf_file + ' gnb 2>&1 > gnb_stats_monitor_execution.log &', '\$', 5)
......
...@@ -14,8 +14,8 @@ import yaml ...@@ -14,8 +14,8 @@ import yaml
class StatMonitor(): class StatMonitor():
def __init__(self,): def __init__(self,cfg_file):
with open('stats_monitor_conf.yaml','r') as file: with open(cfg_file,'r') as file:
self.d = yaml.load(file) self.d = yaml.load(file)
for node in self.d: for node in self.d:
for metric in self.d[node]: for metric in self.d[node]:
...@@ -83,8 +83,9 @@ class StatMonitor(): ...@@ -83,8 +83,9 @@ class StatMonitor():
if __name__ == "__main__": if __name__ == "__main__":
node = sys.argv[1]#enb or gnb cfg_filename = sys.argv[1] #yaml file as metrics config
mon=StatMonitor() node = sys.argv[2]#enb or gnb
mon=StatMonitor(cfg_filename)
#collecting stats when modem process is stopped #collecting stats when modem process is stopped
CMD='ps aux | grep mode | grep -v grep' CMD='ps aux | grep mode | grep -v grep'
......
...@@ -122,8 +122,8 @@ ...@@ -122,8 +122,8 @@
<testCase id="070001"> <testCase id="070001">
<class>Iperf</class> <class>Iperf</class>
<desc>iperf (UL/1Mbps/UDP)(60 sec)(single-ue profile)</desc> <desc>iperf (UL/1Mbps/UDP)(20 sec)(single-ue profile)</desc>
<iperf_args>-u -b 1M -t 60</iperf_args> <iperf_args>-u -b 1M -t 20</iperf_args>
<direction>UL</direction> <direction>UL</direction>
<id>nrmodule2_quectel</id> <id>nrmodule2_quectel</id>
<iperf_packetloss_threshold>5</iperf_packetloss_threshold> <iperf_packetloss_threshold>5</iperf_packetloss_threshold>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment