Add _total to hyper-v memory counter metrics

Signed-off-by: Andrew Banman <abanman@pnri.org>
This commit is contained in:
Andrew Banman
2022-05-12 10:00:49 -07:00
parent 9f384e3db1
commit dd494b11bb

View File

@@ -609,7 +609,7 @@ func NewHyperVCollector() (Collector, error) {
// //
VMMemoryAddedMemory: prometheus.NewDesc( 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", "This counter represents memory in MB added to the VM",
[]string{"vm"}, []string{"vm"},
nil, nil,
@@ -639,13 +639,13 @@ func NewHyperVCollector() (Collector, error) {
nil, nil,
), ),
VMMemoryMemoryAddOperations: prometheus.NewDesc( 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.", "This counter represents the number of operations adding memory to the VM.",
[]string{"vm"}, []string{"vm"},
nil, nil,
), ),
VMMemoryMemoryRemoveOperations: prometheus.NewDesc( 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.", "This counter represents the number of operations removing memory from the VM.",
[]string{"vm"}, []string{"vm"},
nil, nil,
@@ -663,7 +663,7 @@ func NewHyperVCollector() (Collector, error) {
nil, nil,
), ),
VMMemoryRemovedMemory: prometheus.NewDesc( 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", "This counter represents memory in MB removed from the VM",
[]string{"vm"}, []string{"vm"},
nil, nil,