prometheus-borg-exporter/buffer.go
Valentin Doreau f0f68e485f
fix: store new metrics in buffer before resetting
Borg repo information can take a long time to gather.
Before resetting the old metrics we store the new ones in a buffer
and update everything at the end.
2024-04-21 15:22:29 +02:00

14 lines
313 B
Go

package main
type MetricsBuffer struct {
RepoName string
ArchiveCount float64
LastArchiveTime float64
LastModified float64
TotalChunks float64
TotalCsize float64
TotalSize float64
TotalUniqueChunks float64
UniqueCsize float64
UniqueSize float64
}