bugfix: regex for dpi 43/31743/1
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Fri, 24 Mar 2017 08:47:31 +0000 (16:47 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Sat, 25 Mar 2017 01:06:15 +0000 (01:06 +0000)
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>
(cherry picked from commit 6ee214ad9487dfaa121c72d8487464f63992c5ff)

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: