Skip to content

Commit

Permalink
Refine the description and units of 'running_vcpus' and 'running_doma…
Browse files Browse the repository at this point in the history
…ins'

Signed-off-by: Lunfan Zhang <[email protected]>
  • Loading branch information
LunfanZhang authored and lindig committed Jan 19, 2024
1 parent d3f5af1 commit 583994b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
)
Expand Down

0 comments on commit 583994b

Please sign in to comment.