aboutsummaryrefslogtreecommitdiffstats
path: root/resources/template/dpi-metrics.j2
diff options
context:
space:
mode:
Diffstat (limited to 'resources/template/dpi-metrics.j2')
-rw-r--r--resources/template/dpi-metrics.j27
1 files changed, 7 insertions, 0 deletions
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 %}