Skip to content

Add thread state as attribute to process.runtime.jvm.threads.count  #7006

@gabrielgiussi

Description

@gabrielgiussi

The current process.runtime.jvm.threads.count metric exported by the agent (or manually using Threads#registerObservers directly) only has as an attribute if corresponds to deamon threads or not, but knowing how many threads are in a particular state is also important.

We could include the state attribute to the existing metric process.runtime.jvm.threads.count or create a new one, IMO adding to the existing one makes more sense because otherwise it would be confusing having two metrics measuring the same with different attributes.

If you are ok with this change I can work on the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions