mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Add cluster IAM metrics in metrics-v3 (#19595)
Signed-off-by: Bala.FA <bala@minio.io>
This commit is contained in:
@@ -46,6 +46,7 @@ const (
|
||||
clusterErasureSetCollectorPath collectorPath = "/cluster/erasure-set"
|
||||
clusterAuditCollectorPath collectorPath = "/cluster/audit"
|
||||
clusterNotificationCollectorPath collectorPath = "/cluster/notification"
|
||||
clusterIAMCollectorPath collectorPath = "/cluster/iam"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -278,6 +279,22 @@ func newMetricGroups(r *prometheus.Registry) *metricsV3Collection {
|
||||
loadClusterNotificationMetrics,
|
||||
)
|
||||
|
||||
clusterIAMMG := NewMetricsGroup(clusterIAMCollectorPath,
|
||||
[]MetricDescriptor{
|
||||
lastSyncDurationMillisMD,
|
||||
pluginAuthnServiceFailedRequestsMinuteMD,
|
||||
pluginAuthnServiceLastFailSecondsMD,
|
||||
pluginAuthnServiceLastSuccSecondsMD,
|
||||
pluginAuthnServiceSuccAvgRttMsMinuteMD,
|
||||
pluginAuthnServiceSuccMaxRttMsMinuteMD,
|
||||
pluginAuthnServiceTotalRequestsMinuteMD,
|
||||
sinceLastSyncMillisMD,
|
||||
syncFailuresMD,
|
||||
syncSuccessesMD,
|
||||
},
|
||||
loadClusterIAMMetrics,
|
||||
)
|
||||
|
||||
allMetricGroups := []*MetricsGroup{
|
||||
apiRequestsMG,
|
||||
apiBucketMG,
|
||||
@@ -294,6 +311,7 @@ func newMetricGroups(r *prometheus.Registry) *metricsV3Collection {
|
||||
clusterErasureSetMG,
|
||||
clusterAuditMG,
|
||||
clusterNotificationMG,
|
||||
clusterIAMMG,
|
||||
}
|
||||
|
||||
// Bucket metrics are special, they always include the bucket label. These
|
||||
|
||||
Reference in New Issue
Block a user