Skip to content

Commit 10b0a23

Browse files
authored
fix: update metric descriptions to specify current MinIO server instance (#21638)
Signed-off-by: yangw <[email protected]>
1 parent 18f97e7 commit 10b0a23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/metrics.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) {
386386
ch <- prometheus.MustNewConstMetric(
387387
prometheus.NewDesc(
388388
prometheus.BuildFQName(minioNamespace, "capacity_raw", "total"),
389-
"Total capacity online in the cluster",
389+
"Total capacity online in current MinIO server instance",
390390
nil, nil),
391391
prometheus.GaugeValue,
392392
float64(GetTotalCapacity(server.Disks)),
@@ -396,7 +396,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) {
396396
ch <- prometheus.MustNewConstMetric(
397397
prometheus.NewDesc(
398398
prometheus.BuildFQName(minioNamespace, "capacity_raw_free", "total"),
399-
"Total free capacity online in the cluster",
399+
"Total free capacity online in current MinIO server instance",
400400
nil, nil),
401401
prometheus.GaugeValue,
402402
float64(GetTotalCapacityFree(server.Disks)),
@@ -408,7 +408,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) {
408408
ch <- prometheus.MustNewConstMetric(
409409
prometheus.NewDesc(
410410
prometheus.BuildFQName(minioNamespace, "capacity_usable", "total"),
411-
"Total usable capacity online in the cluster",
411+
"Total usable capacity online in current MinIO server instance",
412412
nil, nil),
413413
prometheus.GaugeValue,
414414
float64(GetTotalUsableCapacity(server.Disks, sinfo)),
@@ -418,7 +418,7 @@ func storageMetricsPrometheus(ch chan<- prometheus.Metric) {
418418
ch <- prometheus.MustNewConstMetric(
419419
prometheus.NewDesc(
420420
prometheus.BuildFQName(minioNamespace, "capacity_usable_free", "total"),
421-
"Total free usable capacity online in the cluster",
421+
"Total free usable capacity online in current MinIO server instance",
422422
nil, nil),
423423
prometheus.GaugeValue,
424424
float64(GetTotalUsableCapacityFree(server.Disks, sinfo)),

0 commit comments

Comments
 (0)