From 10b0a234d25bf47e99b9c90989c84c405b5e81ce Mon Sep 17 00:00:00 2001 From: yangw Date: Fri, 24 Oct 2025 12:06:31 +0800 Subject: [PATCH] fix: update metric descriptions to specify current MinIO server instance (#21638) Signed-off-by: yangw --- cmd/metrics.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/metrics.go b/cmd/metrics.go index 0548ff2b0..c5dc3cdfd 100644 --- a/cmd/metrics.go +++ b/cmd/metrics.go @@ -386,7 +386,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric( prometheus.NewDesc( prometheus.BuildFQName(minioNamespace, "capacity_raw", "total"), - "Total capacity online in the cluster", + "Total capacity online in current MinIO server instance", nil, nil), prometheus.GaugeValue, float64(GetTotalCapacity(server.Disks)), @@ -396,7 +396,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric( prometheus.NewDesc( prometheus.BuildFQName(minioNamespace, "capacity_raw_free", "total"), - "Total free capacity online in the cluster", + "Total free capacity online in current MinIO server instance", nil, nil), prometheus.GaugeValue, float64(GetTotalCapacityFree(server.Disks)), @@ -408,7 +408,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric( prometheus.NewDesc( prometheus.BuildFQName(minioNamespace, "capacity_usable", "total"), - "Total usable capacity online in the cluster", + "Total usable capacity online in current MinIO server instance", nil, nil), prometheus.GaugeValue, float64(GetTotalUsableCapacity(server.Disks, sinfo)), @@ -418,7 +418,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) { ch <- prometheus.MustNewConstMetric( prometheus.NewDesc( prometheus.BuildFQName(minioNamespace, "capacity_usable_free", "total"), - "Total free usable capacity online in the cluster", + "Total free usable capacity online in current MinIO server instance", nil, nil), prometheus.GaugeValue, float64(GetTotalUsableCapacityFree(server.Disks, sinfo)),