Increased ttl of metrics to 5 minutes
This commit is contained in:
@@ -31,7 +31,7 @@ func NewPveStorageCollector(apiClient *proxmox.PveApiClient, registry *TTLRegist
|
||||
Help: "Node storage UP state.",
|
||||
},
|
||||
[]string{"cluster", "node", "storage", "type", "content", "shared"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.state)
|
||||
|
||||
@@ -42,7 +42,7 @@ func NewPveStorageCollector(apiClient *proxmox.PveApiClient, registry *TTLRegist
|
||||
Help: "Node storage total capacity in bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "storage", "type", "content", "shared"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.total)
|
||||
|
||||
@@ -53,7 +53,7 @@ func NewPveStorageCollector(apiClient *proxmox.PveApiClient, registry *TTLRegist
|
||||
Help: "Node storage available capacity in bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "storage", "type", "content", "shared"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.avail)
|
||||
|
||||
@@ -64,7 +64,7 @@ func NewPveStorageCollector(apiClient *proxmox.PveApiClient, registry *TTLRegist
|
||||
Help: "Node storage used capacity in bytes.",
|
||||
},
|
||||
[]string{"cluster", "node", "storage", "type", "content", "shared"},
|
||||
1*time.Minute,
|
||||
5*time.Minute,
|
||||
)
|
||||
c.registry.Register(c.used)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user