mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 08:46:54 +08:00
vacuum metrics and force sync dst files (#3832)
This commit is contained in:
committed by
GitHub
parent
f5d4952d73
commit
1f7e52c63e
@@ -137,6 +137,31 @@ var (
|
||||
Help: "Counter of volume server requests.",
|
||||
}, []string{"type"})
|
||||
|
||||
VolumeServerVacuumingCompactCounter = prometheus.NewCounterVec(
|
||||
prometheus.CounterOpts{
|
||||
Namespace: Namespace,
|
||||
Subsystem: "volumeServer",
|
||||
Name: "vacuuming_compact_count",
|
||||
Help: "Counter of volume vacuuming Compact counter",
|
||||
}, []string{"success"})
|
||||
|
||||
VolumeServerVacuumingCommitCounter = prometheus.NewCounterVec(
|
||||
prometheus.CounterOpts{
|
||||
Namespace: Namespace,
|
||||
Subsystem: "volumeServer",
|
||||
Name: "vacuuming_commit_count",
|
||||
Help: "Counter of volume vacuuming commit counter",
|
||||
}, []string{"success"})
|
||||
|
||||
VolumeServerVacuumingHistogram = prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Namespace: Namespace,
|
||||
Subsystem: "volumeServer",
|
||||
Name: "vacuuming_seconds",
|
||||
Help: "Bucketed histogram of volume server vacuuming processing time.",
|
||||
Buckets: prometheus.ExponentialBuckets(0.0001, 2, 24),
|
||||
}, []string{"type"})
|
||||
|
||||
VolumeServerRequestHistogram = prometheus.NewHistogramVec(
|
||||
prometheus.HistogramOpts{
|
||||
Namespace: Namespace,
|
||||
@@ -223,6 +248,9 @@ func init() {
|
||||
|
||||
Gather.MustRegister(VolumeServerRequestCounter)
|
||||
Gather.MustRegister(VolumeServerRequestHistogram)
|
||||
Gather.MustRegister(VolumeServerVacuumingCompactCounter)
|
||||
Gather.MustRegister(VolumeServerVacuumingCommitCounter)
|
||||
Gather.MustRegister(VolumeServerVacuumingHistogram)
|
||||
Gather.MustRegister(VolumeServerVolumeCounter)
|
||||
Gather.MustRegister(VolumeServerMaxVolumeCounter)
|
||||
Gather.MustRegister(VolumeServerReadOnlyVolumeGauge)
|
||||
|
||||
Reference in New Issue
Block a user