Skip to content

Add some new thread metric and class metric to JVMMetric #7230

Closed
@Switch-vov

Description

@Switch-vov
Contributor

Please answer these questions before submitting your issue.

    • Why do you submit this issue?
    • Feature or performance improvement

Requirement or improvement

Add some new thread metric and class metric to JVMMetric.

Protocal

message JVMMetric {
    int64 time = 1;
    CPU cpu = 2;
    repeated Memory memory = 3;
    repeated MemoryPool memoryPool = 4;
    repeated GC gc = 5;
    Thread thread = 6;
    Class clazz = 7;
}

message Thread {
    int64 liveCount = 1;
    int64 daemonCount = 2;
    int64 peakCount = 3;
    // new metric
    int64 newStateThreadCount = 4;
    int64 runnableStateThreadCount = 5;
    int64 blockedStateThreadCount = 6;
    int64 waitingStateThreadCount = 7;
    int64 timedWaitingStateThreadCount = 8;
    int64 terminatedStateThreadCount = 9;
}

// new metric
message Class {
    int64 loadedClassCount = 1;
    int64 totalUnloadedClassCount = 2;
    int64 totalLoadedClassCount = 3;
}

The result in skywalking ui

image
image

Activity

wu-sheng

wu-sheng commented on Jul 2, 2021

@wu-sheng
Member

You could send pull request to data-collect-protocol repo, we could check details there.

added
protocolagent->collector or UI->collector protocols related.
on Jul 2, 2021
Switch-vov

Switch-vov commented on Jul 2, 2021

@Switch-vov
ContributorAuthor

You could send pull request to data-collect-protocol repo, we could check details there.

ok. I'm trying to send PR.

changed the title [-]add some new thread metric and class metric to JVMMetric[/-] [+]Add some new thread metric and class metric to JVMMetric[/+] on Jul 5, 2021

6 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    protocolagent->collector or UI->collector protocols related.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @wu-sheng@Switch-vov

      Issue actions

        Add some new thread metric and class metric to JVMMetric · Issue #7230 · apache/skywalking