mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
Move /system/go to /debug/go (#19707)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user