mirror of
https://github.com/minio/minio.git
synced 2025-04-09 06:00:12 -04:00
Correct bucket metrics name (#20823)
Earlier, cluster and bucket metrics were named `minio_usage_last_activity_nano_seconds`. The bucket level is now named as `minio_bucket_usage_last_activity_nano_seconds` Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
parent
224a27992a
commit
6f47414b23
@ -685,6 +685,16 @@ func getUsageLastScanActivityMD() MetricDescription {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getBucketUsageLastScanActivityMD() MetricDescription {
|
||||||
|
return MetricDescription{
|
||||||
|
Namespace: bucketMetricNamespace,
|
||||||
|
Subsystem: usageSubsystem,
|
||||||
|
Name: lastActivityTime,
|
||||||
|
Help: "Time elapsed (in nano seconds) since last scan activity",
|
||||||
|
Type: gaugeMetric,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func getBucketUsageQuotaTotalBytesMD() MetricDescription {
|
func getBucketUsageQuotaTotalBytesMD() MetricDescription {
|
||||||
return MetricDescription{
|
return MetricDescription{
|
||||||
Namespace: bucketMetricNamespace,
|
Namespace: bucketMetricNamespace,
|
||||||
@ -3243,7 +3253,7 @@ func getBucketUsageMetrics(opts MetricsGroupOpts) *MetricsGroupV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
metrics = append(metrics, MetricV2{
|
metrics = append(metrics, MetricV2{
|
||||||
Description: getUsageLastScanActivityMD(),
|
Description: getBucketUsageLastScanActivityMD(),
|
||||||
Value: float64(time.Since(dataUsageInfo.LastUpdate)),
|
Value: float64(time.Since(dataUsageInfo.LastUpdate)),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user