aboutsummaryrefslogtreecommitdiff
path: root/weed/stats
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-10-13 23:10:49 -0700
committerchrislu <chris.lu@gmail.com>2022-10-13 23:10:49 -0700
commite05637c42cbb7519aa97c3b46a0305872fa6d11a (patch)
treee2ade7d0cac8c386c84f1c8ec41375bd905ee429 /weed/stats
parentdcd0743a35912dfa559ae912e5208f15dd186386 (diff)
parenta5b867af69ff7be5e0f0944b2ee4275524d542e9 (diff)
downloadseaweedfs-e05637c42cbb7519aa97c3b46a0305872fa6d11a.tar.xz
seaweedfs-e05637c42cbb7519aa97c3b46a0305872fa6d11a.zip
Merge branch 'master' of https://github.com/seaweedfs/seaweedfs
Diffstat (limited to 'weed/stats')
-rw-r--r--weed/stats/metrics.go28
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)