bugfix: regex for dpi 67/31667/1
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Fri, 24 Mar 2017 08:47:31 +0000 (16:47 +0800)
committerwu.zhihui <wu.zhihui1@zte.com.cn>
Fri, 24 Mar 2017 08:56:02 +0000 (16:56 +0800)
see: https://build.opnfv.org/ci/view/qtip/job/
qtip-os-nosdn-kvm-ha-zte-pod3-daily-danube/3/console

Previous regex cann't match with log like:
"nDPI throughput:       943.34 K pps / 8.86 Gb/sec".
For pps, there are two type of unit: K and M.
Same with bps.

Change-Id: I247c8b6049cc8b264fe894538cd4f89ba544c0b8
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
qtip/collector/parser/regex.yaml

index 397f897..9427113 100644 (file)
@@ -25,8 +25,8 @@ dpi:
   - filename: dpi_dump.txt
     grep:
       - |-
-          ^\s+nDPI throughput:.+?(?P<pps>\d+.\d+)\sM\spps.+
-          ?(?P<bps>\d+.\d+)\sGb\/sec
+          ^\s+nDPI throughput:.+?(?P<pps>\d+.\d+)\s.+\spps.+
+          ?(?P<bps>\d+.\d+)\s.+\/sec
 ramspeed:
   - filename: Intmem
     grep: