Synced metrics naming with vms in cts
This commit is contained in:
@@ -91,7 +91,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
|
|||||||
// Container network RX.
|
// Container network RX.
|
||||||
c.netReceive = promauto.NewGaugeVec(
|
c.netReceive = promauto.NewGaugeVec(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Name: "pve_ct_network_receive_bytes",
|
Name: "pve_ct_network_in_bytes",
|
||||||
Help: "Container network RX bytes.",
|
Help: "Container network RX bytes.",
|
||||||
},
|
},
|
||||||
[]string{"cluster", "node", "vmid", "name"},
|
[]string{"cluster", "node", "vmid", "name"},
|
||||||
@@ -100,7 +100,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
|
|||||||
// Container network TX.
|
// Container network TX.
|
||||||
c.netTransmit = promauto.NewGaugeVec(
|
c.netTransmit = promauto.NewGaugeVec(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Name: "pve_ct_network_transmit_bytes",
|
Name: "pve_ct_network_out_bytes",
|
||||||
Help: "Container network TX bytes.",
|
Help: "Container network TX bytes.",
|
||||||
},
|
},
|
||||||
[]string{"cluster", "node", "vmid", "name"},
|
[]string{"cluster", "node", "vmid", "name"},
|
||||||
@@ -109,7 +109,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
|
|||||||
// Container disk written.
|
// Container disk written.
|
||||||
c.diskWrite = promauto.NewGaugeVec(
|
c.diskWrite = promauto.NewGaugeVec(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Name: "pve_ct_disk_written_bytes",
|
Name: "pve_ct_disk_wr_bytes",
|
||||||
Help: "Container disk written bytes.",
|
Help: "Container disk written bytes.",
|
||||||
},
|
},
|
||||||
[]string{"cluster", "node", "vmid", "name"},
|
[]string{"cluster", "node", "vmid", "name"},
|
||||||
@@ -118,7 +118,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient) *PveContainerColl
|
|||||||
// Container disk read.
|
// Container disk read.
|
||||||
c.diskRead = promauto.NewGaugeVec(
|
c.diskRead = promauto.NewGaugeVec(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Name: "pve_ct_disk_read_bytes",
|
Name: "pve_ct_disk_rd_bytes",
|
||||||
Help: "Container disk read bytes.",
|
Help: "Container disk read bytes.",
|
||||||
},
|
},
|
||||||
[]string{"cluster", "node", "vmid", "name"},
|
[]string{"cluster", "node", "vmid", "name"},
|
||||||
|
|||||||
Reference in New Issue
Block a user