Add an optional 'unit' attribute to the <metrics> element. The value of 'unit' provided in a <metric> definition is opaque to vhostmd and returned as is when reporting the metric value. Fixes: https://github.com/vhostmd/vhostmd/issues/8 Signed-off-by: Jim Fehlig <jfehlig@suse.com>
22 lines
401 B
XML
22 lines
401 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright (C) 2009 Novell, Inc.
|
|
|
|
Metric DTD
|
|
|
|
-->
|
|
|
|
<!ELEMENT metric (name,value)>
|
|
|
|
<!ATTLIST metric
|
|
type (int32|uint32|int64|uint64|real32|real64|string) #REQUIRED
|
|
context (host|vm) #REQUIRED
|
|
id CDATA #IMPLIED
|
|
uuid CDATA #IMPLIED
|
|
unit CDATA #IMPLIED
|
|
>
|
|
<!ELEMENT name (#PCDATA)>
|
|
<!ELEMENT value (#PCDATA)>
|