From 45b2e0a472ad39cb45be306b8dcdf59f432a7f9e Mon Sep 17 00:00:00 2001 From: Jana Halackova Date: Fri, 13 Sep 2024 15:01:16 +0200 Subject: [PATCH] Completed output format description. --- articles/vhostmd.asm.xml | 36 ++++++++----- concepts/vhostmd_data_format.xml | 89 +++++++++++++++++++++++++++++++- 2 files changed, 111 insertions(+), 14 deletions(-) diff --git a/articles/vhostmd.asm.xml b/articles/vhostmd.asm.xml index 8278f6c7..a8234907 100644 --- a/articles/vhostmd.asm.xml +++ b/articles/vhostmd.asm.xml @@ -25,6 +25,9 @@ About vhostmd + + Metrics format + @@ -51,14 +54,13 @@ - + - Setting Up Virtual Host Metrics Daemon on &productname; - Subtitle if necessary + Setting Up Virtual Host Metrics Daemon on &productname; - - 2024-11-14 + + 2024-10-14 @@ -72,7 +74,7 @@ - + &productname; - short title for SEO and social media, max. 55 chars - short description, max. 150 chars - ultrashort description for social media, max 55 chars + Setting Up Virtual Host Metrics Daemon + vhostmd is a tool that collects metrics on a virtual machine host + and can provide those metrics to virtual machines running on that host. + vhostmd is a tool to collect metrics. Systems Management @@ -117,8 +121,8 @@ https://bugzilla.suse.com/enter_bug.cgi - Smart Docs - Documentation + Documentation + SUSE Linux Enterprise Micro 6.1 jsindelarova@suse.com @@ -148,7 +152,7 @@ EFFORT - What's the effort one has to put in? + It takes approximately 15 minutes to read the article. @@ -213,6 +217,14 @@ + + + + + + + + diff --git a/concepts/vhostmd_data_format.xml b/concepts/vhostmd_data_format.xml index a66c3f70..39d78ebf 100644 --- a/concepts/vhostmd_data_format.xml +++ b/concepts/vhostmd_data_format.xml @@ -30,12 +30,97 @@ vhostmd stores the collected metrics data on the metrics disk in a raw - format. The disk contains 32bytes header followed by the metrics data. + format. The disk contains 32bytes header followed by the metrics data in XML format.
Metrics XML format - If you configured that a + The collected metrics results are similar to the configured metrics definition. The <metric> + element can have the following attirbutes: + + + type + + + Denotes the data type of the particular metric, for example string. + + + + + context + + + Identifies whether the metric is collected on the host (host) or on a virtual machine (vm). + + + + + id + + + Used in the vm context. Conveys the ID number of the virtual machine. + + + + + uuid + + + Used in the vm context. Conveys the Universally Unique Identifier of the virtual machine. + + + + + + The <metric> element contains the following elements: + + + + <name> + + + Conveys the metric name. + + + + + <value> + + + Conveys the metrics actual value. + + + + + + No multiple values within one metric + + When the group type of a metric has been configured, each configured <variable> is stored + as a separate metric in the result. For example, the following configuration snippet: + + +<metric type="group" context="host"> + <name>PageRates</name> + <action>pagerate.pl</action> + <variable name="PageInRate" type="uint64"/> + <variable name="PageFaultRate" type="uint64"/> +</metric> + + + Results in the following snippet: + + +<metric type='uint64' context='host'> + <name>PageInRate</name> + <value>0.000000</value> +</metric> +<metric type='uint64' context='host'> + <name>PageFaultRate</name> + <value>0.000000</value> +</metric> + + +