mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-26 22:56:36 +00:00
Add _total to hyper-v memory counter metrics
Signed-off-by: Andrew Banman <abanman@pnri.org>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user