From b2a82248b1942581f07035ee56fb4e78d905cf96 Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Tue, 14 May 2024 12:55:37 +0530 Subject: [PATCH] Move /system/go to /debug/go (#19707) --- cmd/metrics-v3.go | 5 +++-- docs/metrics/v3.md | 10 +++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/cmd/metrics-v3.go b/cmd/metrics-v3.go index 862ff649b..beb838433 100644 --- a/cmd/metrics-v3.go +++ b/cmd/metrics-v3.go @@ -42,7 +42,8 @@ const ( systemMemoryCollectorPath collectorPath = "/system/memory" systemCPUCollectorPath collectorPath = "/system/cpu" systemProcessCollectorPath collectorPath = "/system/process" - systemGoCollectorPath collectorPath = "/system/go" + + debugGoCollectorPath collectorPath = "/debug/go" clusterHealthCollectorPath collectorPath = "/cluster/health" clusterUsageObjectsCollectorPath collectorPath = "/cluster/usage/objects" @@ -350,7 +351,7 @@ func newMetricGroups(r *prometheus.Registry) *metricsV3Collection { // Create all Non-`MetricGroup` collectors here. collectors := map[collectorPath]prometheus.Collector{ - systemGoCollectorPath: collectors.NewGoCollector(), + debugGoCollectorPath: collectors.NewGoCollector(), } // Add all `MetricGroup` collectors to the map. diff --git a/docs/metrics/v3.md b/docs/metrics/v3.md index 3a276fdcc..6af5052bf 100644 --- a/docs/metrics/v3.md +++ b/docs/metrics/v3.md @@ -52,7 +52,15 @@ These are metrics about the minio process and the node. | `/system/memory` | Metrics about memory on the system | | `/system/network/internode` | Metrics about internode requests made by the node | | `/system/process` | Standard process metrics | -| `/system/go` | Standard Go lang metrics | +| | | + +### Debug metrics + +These are metrics for debugging + +| Path | Description | +|-----------------------------|---------------------------------------------------| +| `/debug/go` | Standard Go lang metrics | | | | ### Cluster metrics