Increased ttl of metrics to 5 minutes
This commit is contained in:
@@ -44,7 +44,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container state.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.state)
|
||||
|
||||
@@ -55,7 +55,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container uptime.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.uptime)
|
||||
|
||||
@@ -66,7 +66,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container CPU count.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.cpu)
|
||||
|
||||
@@ -77,7 +77,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container CPU usage.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.cpuUsage)
|
||||
|
||||
@@ -88,7 +88,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container total memory in bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.memBytes)
|
||||
|
||||
@@ -99,7 +99,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container used memory in bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.memBytesUsed)
|
||||
|
||||
@@ -110,7 +110,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container network RX bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.netReceive)
|
||||
|
||||
@@ -121,7 +121,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container network TX bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.netTransmit)
|
||||
|
||||
@@ -132,7 +132,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container disk written bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.diskWrite)
|
||||
|
||||
@@ -143,7 +143,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container disk read bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.diskRead)
|
||||
|
||||
@@ -154,7 +154,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container disk read bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.disk)
|
||||
|
||||
@@ -165,7 +165,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container disk size bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.diskMax)
|
||||
|
||||
@@ -176,7 +176,7 @@ func NewPveContainerCollector(apiClient *proxmox.PveApiClient, registry *TTLRegi
|
||||
Help: "Container swap usage bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "vmid", "name"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.swap)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user