From 65d6bc2e403b17cd951b001d4c050192c541c109 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Tue, 18 Apr 2017 17:26:20 +0800 Subject: Collect dpi metrics and report Change-Id: I0e02cff9a5bfc123b3227803289fc03abe27f112 Signed-off-by: Yujun Zhang --- resources/template/dpi-metrics.j2 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 resources/template/dpi-metrics.j2 (limited to 'resources/template') diff --git a/resources/template/dpi-metrics.j2 b/resources/template/dpi-metrics.j2 new file mode 100644 index 00000000..4de200b6 --- /dev/null +++ b/resources/template/dpi-metrics.j2 @@ -0,0 +1,7 @@ +nDPI throughput +=============== + +{% for host in groups['compute'] %} +{% set dpi_metrics=hostvars[host].dpi_metrics %} +{{ (hostvars[host].ansible_hostname, "{} / {}".format(dpi_metrics.dpi_pps[0], dpi_metrics.dpi_bps[0]))|justify }} +{% endfor %} -- cgit 1.2.3-korg