diff options
author | wu.zhihui <wu.zhihui1@zte.com.cn> | 2017-03-24 16:47:31 +0800 |
---|---|---|
committer | wu.zhihui <wu.zhihui1@zte.com.cn> | 2017-03-24 16:56:02 +0800 |
commit | 6ee214ad9487dfaa121c72d8487464f63992c5ff (patch) | |
tree | 7a1e001ae5290dfd888f3631d956a3aec9522b43 | |
parent | 218495e275178b93441390d17a12cb7b7e7f6112 (diff) |
bugfix: regex for dpi
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>
-rw-r--r-- | qtip/collector/parser/regex.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtip/collector/parser/regex.yaml b/qtip/collector/parser/regex.yaml index 397f8973..94271136 100644 --- a/qtip/collector/parser/regex.yaml +++ b/qtip/collector/parser/regex.yaml @@ -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: |