Change endpoint of v3 notification metrics (#19804)

from /cluster/notification to /notification
This commit is contained in:
Shireesh Anjal
2024-05-24 16:40:24 +05:30
committed by GitHub
parent 2e23076688
commit 673a521711
2 changed files with 20 additions and 12 deletions

View File

@@ -51,12 +51,12 @@ const (
clusterUsageObjectsCollectorPath collectorPath = "/cluster/usage/objects"
clusterUsageBucketsCollectorPath collectorPath = "/cluster/usage/buckets"
clusterErasureSetCollectorPath collectorPath = "/cluster/erasure-set"
clusterNotificationCollectorPath collectorPath = "/cluster/notification"
clusterIAMCollectorPath collectorPath = "/cluster/iam"
auditCollectorPath collectorPath = "/audit"
loggerWebhookCollectorPath collectorPath = "/logger/webhook"
replicationCollectorPath collectorPath = "/replication"
notificationCollectorPath collectorPath = "/notification"
)
const (
@@ -298,7 +298,7 @@ func newMetricGroups(r *prometheus.Registry) *metricsV3Collection {
loadClusterErasureSetMetrics,
)
clusterNotificationMG := NewMetricsGroup(clusterNotificationCollectorPath,
clusterNotificationMG := NewMetricsGroup(notificationCollectorPath,
[]MetricDescriptor{
notificationCurrentSendInProgressMD,
notificationEventsErrorsTotalMD,