You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/04/21 13:27:00 UTC

[skywalking-data-collect-protocol] branch master updated: Add the Kubernetes process upload protocol and simplify the host process (#71)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-data-collect-protocol.git


The following commit(s) were added to refs/heads/master by this push:
     new fd2a115  Add the Kubernetes process upload protocol and simplify the host process (#71)
fd2a115 is described below

commit fd2a115f33eb55495369c83ee476495d4cb5b686
Author: mrproliu <74...@qq.com>
AuthorDate: Thu Apr 21 21:26:56 2022 +0800

    Add the Kubernetes process upload protocol and simplify the host process (#71)
---
 ebpf/profiling/Process.proto | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/ebpf/profiling/Process.proto b/ebpf/profiling/Process.proto
index b30f3d8..4072421 100644
--- a/ebpf/profiling/Process.proto
+++ b/ebpf/profiling/Process.proto
@@ -55,12 +55,10 @@ message EBPFHostProcessMetadata {
     // [required] Entity metadata
     // Must ensure that entity information is unique at the time of reporting
     EBPFProcessEntityMetadata entity = 1;
-    // [required] Process full command line
-    string cmd = 2;
-    // [required] The IP address of the host where the process resides
-    string hostIP = 3;
     // [required] The Process id of the host
-    int32 pid = 4;
+    int32 pid = 2;
+    // [optional] properties of the process
+    repeated KeyStringValuePair properties = 3;
 }
 
 // Process Entity metadata
@@ -77,8 +75,15 @@ message EBPFProcessEntityMetadata {
     repeated string labels = 5;
 }
 
-// [WIP] Kubernetes process metadata
+// Kubernetes process metadata
 message EBPFKubernetesProcessMetadata {
+    // [required] Entity metadata
+    // Must ensure that entity information is unique at the time of reporting
+    EBPFProcessEntityMetadata entity = 1;
+    // [required] The Process id of the host
+    int32 pid = 2;
+    // [optional] properties of the process
+    repeated KeyStringValuePair properties = 3;
 }
 
 message EBPFReportProcessDownstream {
@@ -99,8 +104,9 @@ message EBPFHostProcessDownstream {
     int32 pid = 1;
 }
 
-// [WIP] Kubernetes process downstream
+// Kubernetes process downstream
 message EBPFKubernetesProcessDownstream {
+    int32 pid = 1;
 }
 
 message EBPFProcessPingPkgList {