Skip to content

Commit 83a9730

Browse files
authored
prometheus/collectors: use godoc link for runtime/metrics supported metrics (#1844)
1 parent 8dfb355 commit 83a9730

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus/collectors/go_collector_latest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ func WithGoCollectorMemStatsMetricsDisabled() func(options *internal.GoCollector
9090
// GoRuntimeMetricsRule allow enabling and configuring particular group of runtime/metrics.
9191
// TODO(bwplotka): Consider adding ability to adjust buckets.
9292
type GoRuntimeMetricsRule struct {
93-
// Matcher represents RE2 expression will match the runtime/metrics from https://golang.bg/src/runtime/metrics/description.go
93+
// Matcher represents RE2 expression will match the runtime/metrics from https://pkg.go.dev/runtime/metrics
9494
// Use `regexp.MustCompile` or `regexp.Compile` to create this field.
9595
Matcher *regexp.Regexp
9696
}
9797

9898
// WithGoCollectorRuntimeMetrics allows enabling and configuring particular group of runtime/metrics.
99-
// See the list of metrics https://golang.bg/src/runtime/metrics/description.go (pick the Go version you use there!).
99+
// See the list of metrics https://pkg.go.dev/runtime/metrics (pick the Go version you use there!).
100100
// You can use this option in repeated manner, which will add new rules. The order of rules is important, the last rule
101101
// that matches particular metrics is applied.
102102
func WithGoCollectorRuntimeMetrics(rules ...GoRuntimeMetricsRule) func(options *internal.GoCollectorOptions) {

0 commit comments

Comments
 (0)