We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
memory_internal_free is actually reported as bytes but with kilobytes instead.
https://github.com/xapi-project/xen-api/blob/26b6ed61d4edef2699b34eacfb0c901b9edb1b45/ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml
let mem_available () = let* size, kb = scan "/proc/meminfo" in match kb with "kB" -> ok size | _ -> res_error "unexpected unit: %s" kb
This is read as kilobytes (and is it actually reading the MemAvailable ?)
match mem_available () with | Ok mem -> Some ( Rrd.VM uuid , Ds.ds_make ~name:"memory_internal_free" ~units:"B" ~description:"Dom0 current free memory" ~value:(Rrd.VT_Int64 mem) ~ty:Rrd.Gauge ~min:0.0 ~default:true () )
But this is pushed as is, with units as "B" instead of "KiB".
The text was updated successfully, but these errors were encountered:
Report memory available as Kib
e3f11da
This fixes xapi-project#6157 Signed-off-by: Guillaume <[email protected]>
Report memory available as Kib (#6204)
0f1f45c
This fixes #6157
Successfully merging a pull request may close this issue.
memory_internal_free is actually reported as bytes but with kilobytes instead.
https://github.com/xapi-project/xen-api/blob/26b6ed61d4edef2699b34eacfb0c901b9edb1b45/ocaml/xcp-rrdd/bin/rrdd/xcp_rrdd.ml
This is read as kilobytes (and is it actually reading the MemAvailable ?)
But this is pushed as is, with units as "B" instead of "KiB".
The text was updated successfully, but these errors were encountered: