Skip to content

Go Runtime Metrics: include metric to replace process.runtime.go.mem.heap_sys #3354

@obs-gh-mattcotter

Description

@obs-gh-mattcotter

Area(s)

area:go

What's missing?

The deprecated runtime metrics contain the metric process.runtime.go.mem.heap_sys. This is useful for debugging, and I don't think there's currently a replacement.

I think this is analogous to /memory/classes/total:bytes, which is a component of go.memory.used, but there's no way to calculate /memory/classes/total:bytes from the result of the subtraction since neither metric is exposed individually.

Additional context: /memory/classes/total:bytes was in the Proposed initial metrics.

If my read of the docs is correct and these metrics are analogous, then I propose adding /memory/classes/total:bytes to the new runtime metrics as (e.g.) go.memory.total.

Describe the solution you'd like

New runtime metric added: go.memory.total

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Need triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions