Add cluster notification metrics in metrics-v3 (#19533)

Signed-off-by: Bala.FA <bala@minio.io>
This commit is contained in:
Bala FA
2024-04-24 09:40:35 +05:30
committed by GitHub
parent f3a52cc195
commit 14cdadfb56
3 changed files with 72 additions and 0 deletions

View File

@@ -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