aboutsummaryrefslogtreecommitdiffstats
path: root/resources/metric/nDPI.yaml
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-18 17:26:20 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-18 17:26:20 +0800
commit65d6bc2e403b17cd951b001d4c050192c541c109 (patch)
tree87596654bff284a5b95ebf0f87c90dc76c44032f /resources/metric/nDPI.yaml
parentda8479496691122d49a6bbf61a2dd3355af85fba (diff)
Collect dpi metrics and report
Change-Id: I0e02cff9a5bfc123b3227803289fc03abe27f112 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/metric/nDPI.yaml')
-rw-r--r--resources/metric/nDPI.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/metric/nDPI.yaml b/resources/metric/nDPI.yaml
index 79225443..0391302a 100644
--- a/resources/metric/nDPI.yaml
+++ b/resources/metric/nDPI.yaml
@@ -73,6 +73,8 @@
collect:
string: "{{ nDPI_out.stdout }}"
patterns:
- - '^\s+nDPI throughput:.+?(?P<pps>\d+.\d+)\s.+\spps.+?(?P<bps>\d+.\d+)\s.+\/sec'
+ # nDPI throughput: 1.46 M pps / 13.69 Gb/sec
+ # TODO(yujunz) convert "M pps" and "K pps" to number
+ - 'nDPI throughput:\s+?(?P<dpi_pps>\d+.\d+.*) \/ (?P<dpi_bps>\d+.\d+.*)$'
dump: 'nDPI.log'
register: dpi_metrics