Synced metrics naming with vms in cts

This commit is contained in:
Jan Lošťák
2024-05-30 13:48:49 +02:00
parent 1be0aac715
commit 2b385fbade

View File

@@ -91,7 +91,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
// Container network RX.
c.netReceive = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "pve_ct_network_receive_bytes",
Name: "pve_ct_network_in_bytes",
Help: "Container network RX bytes.",
},
[]string{"cluster", "node", "vmid", "name"},
@@ -100,7 +100,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
// Container network TX.
c.netTransmit = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "pve_ct_network_transmit_bytes",
Name: "pve_ct_network_out_bytes",
Help: "Container network TX bytes.",
},
[]string{"cluster", "node", "vmid", "name"},
@@ -109,7 +109,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
// Container disk written.
c.diskWrite = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "pve_ct_disk_written_bytes",
Name: "pve_ct_disk_wr_bytes",
Help: "Container disk written bytes.",
},
[]string{"cluster", "node", "vmid", "name"},
@@ -118,7 +118,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
// Container disk read.
c.diskRead = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "pve_ct_disk_read_bytes",
Name: "pve_ct_disk_rd_bytes",
Help: "Container disk read bytes.",
},
[]string{"cluster", "node", "vmid", "name"},