mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
Add cluster notification metrics in metrics-v3 (#19533)
Signed-off-by: Bala.FA <bala@minio.io>
This commit is contained in:
@@ -45,6 +45,7 @@ const (
|
||||
clusterUsageBucketsCollectorPath collectorPath = "/cluster/usage/buckets"
|
||||
clusterErasureSetCollectorPath collectorPath = "/cluster/erasure-set"
|
||||
clusterAuditCollectorPath collectorPath = "/cluster/audit"
|
||||
clusterNotificationCollectorPath collectorPath = "/cluster/notification"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -243,6 +244,16 @@ func newMetricGroups(r *prometheus.Registry) *metricsV3Collection {
|
||||
loadClusterAuditMetrics,
|
||||
)
|
||||
|
||||
clusterNotificationMG := NewMetricsGroup(clusterNotificationCollectorPath,
|
||||
[]MetricDescriptor{
|
||||
notificationCurrentSendInProgressMD,
|
||||
notificationEventsErrorsTotalMD,
|
||||
notificationEventsSentTotalMD,
|
||||
notificationEventsSkippedTotalMD,
|
||||
},
|
||||
loadClusterNotificationMetrics,
|
||||
)
|
||||
|
||||
allMetricGroups := []*MetricsGroup{
|
||||
apiRequestsMG,
|
||||
apiBucketMG,
|
||||
@@ -257,6 +268,7 @@ func newMetricGroups(r *prometheus.Registry) *metricsV3Collection {
|
||||
clusterUsageBucketsMG,
|
||||
clusterErasureSetMG,
|
||||
clusterAuditMG,
|
||||
clusterNotificationMG,
|
||||
}
|
||||
|
||||
// Bucket metrics are special, they always include the bucket label. These
|
||||
|
||||
Reference in New Issue
Block a user