From dd494b11bb4cb08a2fc93b25af61db96459d1b4c Mon Sep 17 00:00:00 2001 From: Andrew Banman Date: Thu, 12 May 2022 10:00:49 -0700 Subject: [PATCH] Add _total to hyper-v memory counter metrics Signed-off-by: Andrew Banman --- collector/hyperv.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/collector/hyperv.go b/collector/hyperv.go index 390a81db..33211cfe 100644 --- a/collector/hyperv.go +++ b/collector/hyperv.go @@ -609,7 +609,7 @@ func NewHyperVCollector() (Collector, error) { // VMMemoryAddedMemory: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "added"), + prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "added_total"), "This counter represents memory in MB added to the VM", []string{"vm"}, nil, @@ -639,13 +639,13 @@ func NewHyperVCollector() (Collector, error) { nil, ), VMMemoryMemoryAddOperations: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "add_operations"), + prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "add_operations_total"), "This counter represents the number of operations adding memory to the VM.", []string{"vm"}, nil, ), VMMemoryMemoryRemoveOperations: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "remove_operations"), + prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "remove_operations_total"), "This counter represents the number of operations removing memory from the VM.", []string{"vm"}, nil, @@ -663,7 +663,7 @@ func NewHyperVCollector() (Collector, error) { nil, ), VMMemoryRemovedMemory: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "removed"), + prometheus.BuildFQName(Namespace, buildSubsystemName("vm_memory"), "removed_total"), "This counter represents memory in MB removed from the VM", []string{"vm"}, nil,