fix: dfdaemon seed peer metrics namespace (#1343)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2022-05-30 18:33:32 +08:00
parent 5763ee86bd
commit 40e98d6799
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
1 changed files with 4 additions and 4 deletions

View File

@ -120,28 +120,28 @@ var (
SeedPeerDownloadCount = promauto.NewCounter(prometheus.CounterOpts{ SeedPeerDownloadCount = promauto.NewCounter(prometheus.CounterOpts{
Namespace: constants.MetricsNamespace, Namespace: constants.MetricsNamespace,
Subsystem: constants.CDNMetricsName, Subsystem: constants.DfdaemonMetricsName,
Name: "seed_peer_download_total", Name: "seed_peer_download_total",
Help: "Counter of the number of the seed peer downloading.", Help: "Counter of the number of the seed peer downloading.",
}) })
SeedPeerDownloadFailureCount = promauto.NewCounter(prometheus.CounterOpts{ SeedPeerDownloadFailureCount = promauto.NewCounter(prometheus.CounterOpts{
Namespace: constants.MetricsNamespace, Namespace: constants.MetricsNamespace,
Subsystem: constants.CDNMetricsName, Subsystem: constants.DfdaemonMetricsName,
Name: "seed_peer_download_failure_total", Name: "seed_peer_download_failure_total",
Help: "Counter of the number of failed of the seed peer downloading.", Help: "Counter of the number of failed of the seed peer downloading.",
}) })
SeedPeerDownloadTraffic = promauto.NewCounterVec(prometheus.CounterOpts{ SeedPeerDownloadTraffic = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: constants.MetricsNamespace, Namespace: constants.MetricsNamespace,
Subsystem: constants.CDNMetricsName, Subsystem: constants.DfdaemonMetricsName,
Name: "seed_peer_download_traffic", Name: "seed_peer_download_traffic",
Help: "Counter of the number of seed peer download traffic.", Help: "Counter of the number of seed peer download traffic.",
}, []string{"type"}) }, []string{"type"})
SeedPeerConcurrentDownloadGauge = promauto.NewGauge(prometheus.GaugeOpts{ SeedPeerConcurrentDownloadGauge = promauto.NewGauge(prometheus.GaugeOpts{
Namespace: constants.MetricsNamespace, Namespace: constants.MetricsNamespace,
Subsystem: constants.CDNMetricsName, Subsystem: constants.DfdaemonMetricsName,
Name: "seed_peer_concurrent_download_total", Name: "seed_peer_concurrent_download_total",
Help: "Gauger of the number of concurrent of the seed peer downloading.", Help: "Gauger of the number of concurrent of the seed peer downloading.",
}) })