Skip to content

Expose more Go runtime metrics#7070

Merged
yeya24 merged 2 commits into
cortexproject:masterfrom
yeya24:go-metrics
Oct 27, 2025
Merged

Expose more Go runtime metrics#7070
yeya24 merged 2 commits into
cortexproject:masterfrom
yeya24:go-metrics

Conversation

@yeya24
Copy link
Copy Markdown
Contributor

@yeya24 yeya24 commented Oct 26, 2025

What this PR does:

By default the Go collector only collects minimum Go metrics. Use the same code as Prometheus to collect additional Go GC, scheduler and sync wait metrics https://github.com/prometheus/prometheus/blob/release-3.7/cmd/prometheus/main.go#L331

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@dosubot dosubot Bot added the go Pull requests that update Go code label Oct 26, 2025
Signed-off-by: yeya24 <benye@amazon.com>
Signed-off-by: yeya24 <benye@amazon.com>
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Oct 27, 2025
@yeya24 yeya24 merged commit f5a27ec into cortexproject:master Oct 27, 2025
33 of 34 checks passed
@yeya24 yeya24 deleted the go-metrics branch October 27, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code lgtm This PR has been approved by a maintainer size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants