mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
5de22d22bc
* metrics for count and size of blob files * Update beacon-chain/db/filesystem/metrics.go Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com> * double check ssz extension --------- Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com> Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package filesystem
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
blobBuckets = []float64{3, 5, 7, 9, 11, 13}
|
|
blobSaveLatency = promauto.NewHistogram(prometheus.HistogramOpts{
|
|
Name: "blob_storage_save_latency",
|
|
Help: "Latency of BlobSidecar storage save operations in milliseconds",
|
|
Buckets: blobBuckets,
|
|
})
|
|
blobFetchLatency = promauto.NewHistogram(prometheus.HistogramOpts{
|
|
Name: "blob_storage_get_latency",
|
|
Help: "Latency of BlobSidecar storage get operations in milliseconds",
|
|
Buckets: blobBuckets,
|
|
})
|
|
blobsPrunedCounter = promauto.NewCounter(prometheus.CounterOpts{
|
|
Name: "blob_pruned",
|
|
Help: "Number of BlobSidecar files pruned.",
|
|
})
|
|
blobsWrittenCounter = promauto.NewCounter(prometheus.CounterOpts{
|
|
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",
|
|
})
|
|
)
|