diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-10-13 12:51:20 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-13 00:51:20 -0700 |
| commit | 1f7e52c63e210ccb3a177c1e58d5a0c8e79ad870 (patch) | |
| tree | 42b417fc124d40d01f75eb3d5eb9e6bce86b2e5f /weed/stats/metrics.go | |
| parent | f5d4952d7306ba013bb9c054b221d795a3e110d6 (diff) | |
| download | seaweedfs-1f7e52c63e210ccb3a177c1e58d5a0c8e79ad870.tar.xz seaweedfs-1f7e52c63e210ccb3a177c1e58d5a0c8e79ad870.zip | |
vacuum metrics and force sync dst files (#3832)
Diffstat (limited to 'weed/stats/metrics.go')
| -rw-r--r-- | weed/stats/metrics.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/weed/stats/metrics.go b/weed/stats/metrics.go index d1723fdc6..9f9c0c18d 100644 --- a/weed/stats/metrics.go +++ b/weed/stats/metrics.go @@ -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) |
