github.com/pinpoint-apm/pinpoint-go-agent@v1.4.1-0.20240110120318-a50c2eb18c8c/protobuf/Stat.proto (about)

     1  syntax = "proto3";
     2  
     3  import "v1/ThreadDump.proto";
     4  
     5  option java_multiple_files = true;
     6  option java_package = "com.navercorp.pinpoint.grpc.trace";
     7  option java_outer_classname = "StatProto";
     8  option go_package = "/v1";
     9  
    10  package v1;
    11  
    12  message PPing {
    13  }
    14  
    15  message PStatMessage {
    16      oneof field {
    17          PAgentStat agentStat = 1;
    18          PAgentStatBatch agentStatBatch = 2;
    19          PAgentUriStat agentUriStat = 3;
    20      }
    21  }
    22  
    23  message PAgentInfo {
    24      string hostname = 1;
    25      string ip = 2;
    26      string ports = 3;
    27      int32 serviceType = 4;
    28      int32 pid = 5;
    29      string agentVersion = 6;
    30      string vmVersion = 7;
    31      int64 endTimestamp = 8;
    32      int32 endStatus = 9;
    33      PServerMetaData serverMetaData = 10;
    34      PJvmInfo jvmInfo = 11;
    35      bool container = 12;
    36  }
    37  
    38  message PServerMetaData {
    39      string serverInfo = 1;
    40      repeated string vmArg = 2;
    41      repeated PServiceInfo serviceInfo = 3;
    42  }
    43  
    44  message PServiceInfo {
    45      string serviceName = 1;
    46      repeated string serviceLib = 2;
    47  }
    48  
    49  message PJvmInfo {
    50      int32 version = 1;
    51      string vmVersion = 2;
    52      PJvmGcType gcType = 3;
    53  }
    54  
    55  enum PJvmGcType {
    56      JVM_GC_TYPE_UNKNOWN = 0;
    57      JVM_GC_TYPE_SERIAL = 1;
    58      JVM_GC_TYPE_PARALLEL = 2;
    59      JVM_GC_TYPE_CMS = 3;
    60      JVM_GC_TYPE_G1 = 4;
    61  }
    62  
    63  message PAgentStat {
    64      int64 timestamp = 1;
    65      int64 collectInterval =2;
    66      PJvmGc gc = 3;
    67      PCpuLoad cpuLoad = 4;
    68      PTransaction transaction = 5;
    69      PActiveTrace activeTrace = 6;
    70      PDataSourceList dataSourceList = 7;
    71      PResponseTime responseTime = 8;
    72      PDeadlock deadlock = 9;
    73      PFileDescriptor fileDescriptor = 10;
    74      PDirectBuffer directBuffer = 11;
    75      string metadata = 12;
    76      PTotalThread totalThread = 13;
    77      PLoadedClass loadedClass = 14;
    78  }
    79  
    80  message PAgentStatBatch {
    81      repeated PAgentStat agentStat = 1;
    82  }
    83  
    84  message PDataSource {
    85      int32 id = 1;
    86      int32 serviceTypeCode = 2;
    87      string databaseName = 3;
    88      string url = 4;
    89      int32 activeConnectionSize = 5;
    90      int32 maxConnectionSize = 6;
    91  }
    92  
    93  message PDataSourceList {
    94      repeated PDataSource dataSource = 1;
    95  }
    96  
    97  message PFileDescriptor {
    98      int64 openFileDescriptorCount = 1;
    99  }
   100  
   101  message PJvmGc {
   102      PJvmGcType type = 1;
   103      int64 jvmMemoryHeapUsed = 2;
   104      int64 jvmMemoryHeapMax = 3;
   105      int64 jvmMemoryNonHeapUsed = 4;
   106      int64 jvmMemoryNonHeapMax = 5;
   107      int64 jvmGcOldCount = 6;
   108      int64 jvmGcOldTime = 7;
   109      PJvmGcDetailed jvmGcDetailed = 8;
   110  }
   111  
   112  message PJvmGcDetailed {
   113      int64 jvmGcNewCount = 1;
   114      int64 jvmGcNewTime = 2;
   115      double jvmPoolCodeCacheUsed = 3;
   116      double jvmPoolNewGenUsed = 4;
   117      double jvmPoolOldGenUsed = 5;
   118      double jvmPoolSurvivorSpaceUsed = 6;
   119      double jvmPoolPermGenUsed = 7;
   120      double jvmPoolMetaspaceUsed = 8;
   121  }
   122  
   123  message PCpuLoad {
   124      double jvmCpuLoad = 1;
   125      double systemCpuLoad = 2;
   126  }
   127  
   128  message PTransaction {
   129      int64 sampledNewCount = 2;
   130      int64 sampledContinuationCount = 3;
   131      int64 unsampledNewCount = 4;
   132      int64 unsampledContinuationCount = 5;
   133      int64 skippedNewCount = 6;
   134      int64 skippedContinuationCount = 7;
   135  }
   136  
   137  message PActiveTraceHistogram {
   138      int32 version = 1;
   139      int32 histogramSchemaType = 2;
   140      repeated int32 activeTraceCount = 3;
   141  }
   142  
   143  message PActiveTrace {
   144      PActiveTraceHistogram histogram = 1;
   145  }
   146  
   147  message PResponseTime {
   148      int64 avg = 1;
   149      int64 max = 2;
   150  }
   151  
   152  message PDeadlock {
   153      int32 count = 1;
   154      repeated PThreadDump threadDump = 2;
   155  }
   156  
   157  message PDirectBuffer {
   158      int64 directCount = 1;
   159      int64 directMemoryUsed = 2;
   160      int64 mappedCount = 3;
   161      int64 mappedMemoryUsed = 4;
   162  }
   163  
   164  message PTotalThread {
   165      int64 totalThreadCount = 1;
   166  }
   167  
   168  message PLoadedClass {
   169      int64 loadedClassCount = 1;
   170      int64 unloadedClassCount = 2;
   171  }
   172  
   173  message PAgentUriStat {
   174      int32 bucketVersion = 1;
   175      repeated PEachUriStat eachUriStat = 2;
   176  }
   177  
   178  message PEachUriStat {
   179      string uri = 1;
   180      PUriHistogram totalHistogram = 2;
   181      PUriHistogram failedHistogram = 3;
   182      int64 timestamp = 4;
   183  }
   184  
   185  message PUriHistogram {
   186      int64 total = 1;
   187      int64 max = 2;
   188      repeated int32 histogram = 3;
   189  }