0
I'm looking to use curl to get the metrics from the trex ZMQ server
so far I have been trying to do something with curl http://localhost:4500/trex-global -H "Accept: application/json"
. For this example I would like to get Tx Bw
from the output below using curl, the output below is taken from the trex cli
-Per port stats table
ports | 0 | 1
---------------------------------------------------------------------------
--------------
opackets | 0 | 0
obytes | 0 | 0
ipackets | 0 | 0
ibytes | 0 | 0
ierrors | 0 | 0
oerrors | 0 | 0
Tx Bw | 0.00 bps | 0.00 bps
-Global stats enabled
Cpu Utilization : 0.0 % 0.0 Gb/core
Platform_factor : 1.0
Total-Tx : 0.00 bps
Total-Rx : 0.00 bps
Total-PPS : 0.00 pps
Total-CPS : 0.00 cps
Expected-PPS : 0.00 pps
Expected-CPS : 0.00 cps
Expected-BPS : 0.00 bps
Active-flows : 0 Clients : 0 Socket-util : 0.0000 %
Open-flows : 0 Servers : 0 Socket : 0
Socket/Clients : -nan
drop-rate : 0.00 bps
current time : 6266.4 sec
test duration : 0.0 sec