From 40e98d67997a907e2c8f85b5a3c210463679317c Mon Sep 17 00:00:00 2001 From: Gaius Date: Mon, 30 May 2022 18:33:32 +0800 Subject: [PATCH] fix: dfdaemon seed peer metrics namespace (#1343) Signed-off-by: Gaius --- client/daemon/metrics/metrics.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/daemon/metrics/metrics.go b/client/daemon/metrics/metrics.go index 1a9580629..a5f35ba4c 100644 --- a/client/daemon/metrics/metrics.go +++ b/client/daemon/metrics/metrics.go @@ -120,28 +120,28 @@ var ( SeedPeerDownloadCount = promauto.NewCounter(prometheus.CounterOpts{ Namespace: constants.MetricsNamespace, - Subsystem: constants.CDNMetricsName, + Subsystem: constants.DfdaemonMetricsName, Name: "seed_peer_download_total", Help: "Counter of the number of the seed peer downloading.", }) SeedPeerDownloadFailureCount = promauto.NewCounter(prometheus.CounterOpts{ Namespace: constants.MetricsNamespace, - Subsystem: constants.CDNMetricsName, + Subsystem: constants.DfdaemonMetricsName, Name: "seed_peer_download_failure_total", Help: "Counter of the number of failed of the seed peer downloading.", }) SeedPeerDownloadTraffic = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: constants.MetricsNamespace, - Subsystem: constants.CDNMetricsName, + Subsystem: constants.DfdaemonMetricsName, Name: "seed_peer_download_traffic", Help: "Counter of the number of seed peer download traffic.", }, []string{"type"}) SeedPeerConcurrentDownloadGauge = promauto.NewGauge(prometheus.GaugeOpts{ Namespace: constants.MetricsNamespace, - Subsystem: constants.CDNMetricsName, + Subsystem: constants.DfdaemonMetricsName, Name: "seed_peer_concurrent_download_total", Help: "Gauger of the number of concurrent of the seed peer downloading.", })