2 # test if a vnf can be monitored and deployed
4 cpu_load
=$
(son-emu-cli monitor prometheus
-d datacenter1
-vnf vnf1
-q 'sum(rate(container_cpu_usage_seconds_total{id="/docker/<uuid>"}[10s]))')
6 # test if prometheus query worked
7 regex
="[0-9.]+, [0-9.']+"
8 if [[ $cpu_load =~
$regex ]] ; then