fix: dfdaemon seed peer metrics namespace (#1343)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
5763ee86bd
commit
40e98d6799
|
|
@ -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.",
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue