2023-12-18 18:24:07 +00:00
|
|
|
package filesystem
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2024-01-17 23:28:42 +00:00
|
|
|
blobBuckets = []float64{3, 5, 7, 9, 11, 13}
|
2023-12-18 18:24:07 +00:00
|
|
|
blobSaveLatency = promauto.NewHistogram(prometheus.HistogramOpts{
|
|
|
|
Name: "blob_storage_save_latency",
|
2024-01-17 23:28:42 +00:00
|
|
|
Help: "Latency of BlobSidecar storage save operations in milliseconds",
|
2023-12-18 18:24:07 +00:00
|
|
|
Buckets: blobBuckets,
|
|
|
|
})
|
|
|
|
blobFetchLatency = promauto.NewHistogram(prometheus.HistogramOpts{
|
|
|
|
Name: "blob_storage_get_latency",
|
2024-01-17 23:28:42 +00:00
|
|
|
Help: "Latency of BlobSidecar storage get operations in milliseconds",
|
2023-12-18 18:24:07 +00:00
|
|
|
Buckets: blobBuckets,
|
|
|
|
})
|
|
|
|
blobsPrunedCounter = promauto.NewCounter(prometheus.CounterOpts{
|
2024-01-08 22:31:16 +00:00
|
|
|
Name: "blob_pruned",
|
|
|
|
Help: "Number of BlobSidecar files pruned.",
|
2023-12-18 18:24:07 +00:00
|
|
|
})
|
2024-01-08 22:31:16 +00:00
|
|
|
blobsWrittenCounter = promauto.NewCounter(prometheus.CounterOpts{
|
2024-02-14 19:28:20 +00:00
|
|
|
Name: "blob_written",
|
|
|
|
Help: "Number of BlobSidecar files written",
|
|
|
|
})
|
|
|
|
blobDiskCount = promauto.NewGauge(prometheus.GaugeOpts{
|
|
|
|
Name: "blob_disk_count",
|
|
|
|
Help: "Approximate number of blob files in storage",
|
|
|
|
})
|
|
|
|
blobDiskSize = promauto.NewGauge(prometheus.GaugeOpts{
|
|
|
|
Name: "blob_disk_bytes",
|
|
|
|
Help: "Approximate number of bytes occupied by blobs in storage",
|
2023-12-18 18:24:07 +00:00
|
|
|
})
|
|
|
|
)
|