From 583994b5ee8e26400d30872e1f2a3b1386f1c775 Mon Sep 17 00:00:00 2001 From: Lunfan Zhang Date: Thu, 18 Jan 2024 06:12:15 +0000 Subject: [PATCH] Refine the description and units of 'running_vcpus' and 'running_domains' Signed-off-by: Lunfan Zhang --- ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml b/ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml index 97d8071e61f..1979f4ab16b 100644 --- a/ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml +++ b/ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml @@ -398,14 +398,14 @@ let dss_hostload xc domains = () ) ; ( Rrd.Host - , Ds.ds_make ~name:"running_vcpus" ~units:"(vcpus)" - ~description:"The total number of running vCPU per host" + , Ds.ds_make ~name:"running_vcpus" ~units:"count" + ~description:"The total number of running vCPUs per host" ~value:(Rrd.VT_Int64 (Int64.of_int load)) ~min:0.0 ~ty:Rrd.Gauge ~default:true () ) ; ( Rrd.Host - , Ds.ds_make ~name:"running_domains" ~units:"(domains)" - ~description:"The total number of running domain per host" + , Ds.ds_make ~name:"running_domains" ~units:"count" + ~description:"The total number of running domains per host" ~value:(Rrd.VT_Int64 (Int64.of_int running_domains)) ~min:0.0 ~ty:Rrd.Gauge ~default:true () )