-
Notifications
You must be signed in to change notification settings - Fork 4.1k
status: expose Go heap object count metrics #160607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add two new metrics sourced from Go's runtime/metrics package: - sys.go.heap.objects: number of objects (live + unswept) on the heap, from /gc/heap/objects:objects - sys.go.heap.livebytes: bytes of live heap objects marked by the previous GC, from /gc/heap/live:bytes These complement the existing heap byte metrics and provide visibility into object allocation patterns, which can be useful for diagnosing GC pressure from high object churn. Release note: None
Add sys.gc.total.ns metric sourced from Go's /cpu/classes/gc/total:cpu-seconds runtime metric. This provides visibility into total CPU time spent on GC tasks, complementing the existing sys.gc.assist.ns which only captures mutator assist time. Release note: None
|
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
This comment was marked as resolved.
This comment was marked as resolved.
Metrics change detectedThis PR adds or updates one or more CRDB metrics. If you want these metrics to be exported by CRDB Cloud clusters to Internal CRL Datadog and/or included in the customer metric export integration (Essential metrics for standard deployment, and Essential metrics for advanced deployment), refer to this Installation and Usage guide of a CLI tool that syncs the metric mappings in managed-service. Run this CLI tool after your CRDB PR is merged.
Note: Your metric will appear in Internal CRL Datadog only after the managed-service PR merges and the new OTel configuration rolls out to at least one cluster running a CRDB build that includes this metric. Docs: cockroach-metric-sync Questions: reach out to @obs-india-prs |
angeladietz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@angeladietz made 1 comment.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @dhartunian, @golgeek, and @shailendra-patel).
|
Test failure is unrelated infra flake TFTR! bors r+ |
status: expose additional Go runtime metrics
This PR adds three new metrics from Go's runtime/metrics package:
These provide better visibility into GC behavior and object allocation
patterns, useful for diagnosing memory pressure and GC overhead.
Inspired by poking at #160195
Epic: none