summaryrefslogtreecommitdiffstats
path: root/resources/template/mem-metrics.j2
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-18 20:58:10 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-19 11:48:32 +0800
commit759410e4d9feafc1cff66a47e21227e55c04b4cb (patch)
tree6d88aa06eccead43678c05dd465c9a1e41651708 /resources/template/mem-metrics.j2
parentcf4a1fc9562e0c7d205da5b4dc79824e53f1d304 (diff)
Create ramspeed report
Change-Id: I60805e83a9256fb8fdca362478551c2a5a3106dc Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/template/mem-metrics.j2')
-rw-r--r--resources/template/mem-metrics.j224
1 files changed, 24 insertions, 0 deletions
diff --git a/resources/template/mem-metrics.j2 b/resources/template/mem-metrics.j2
new file mode 100644
index 00000000..6b1b6bd4
--- /dev/null
+++ b/resources/template/mem-metrics.j2
@@ -0,0 +1,24 @@
+Memory
+======
+
+{% for host in groups['compute'] %}
+{{ hostvars[host].ansible_hostname }}
+-----------------------------
+
+INTEGER
+^^^^^^^
+{% set metrics=hostvars[host].intmem_metrics %}
+{{ ('Copy', metrics.integer_copy[0])|justify }}
+{{ ('Scale', metrics.integer_scale[0])|justify }}
+{{ ('Add', metrics.integer_add[0])|justify }}
+{{ ('Triad', metrics.integer_triad[0])|justify }}
+
+FL-POINT
+^^^^^^^^
+{% set metrics=hostvars[host].floatmem_metrics %}
+{{ ('Copy', metrics.float_copy[0])|justify }}
+{{ ('Scale', metrics.float_scale[0])|justify }}
+{{ ('Add', metrics.float_add[0])|justify }}
+{{ ('Triad', metrics.float_triad[0])|justify }}
+
+{% endfor %}