hyperv: Refactor collector, added DataStore, Virtual SMB and Dynamic Memory Balancer metrics (click PR number for more information) (#1712)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2024-11-19 23:36:37 +01:00
committed by GitHub
parent 8c90961c10
commit fdee2d8613
29 changed files with 4340 additions and 1952 deletions

View File

@@ -22,6 +22,10 @@ func ToPTR[t any](v t) *t {
return &v
}
func PercentageToRatio(percentage float64) float64 {
return percentage / 100
}
// Must panics if the error is not nil.
//
//nolint:ireturn