From cc8aa8ca4ee53a44487982a55762f72825824d73 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Sun, 21 Jan 2024 18:17:38 +0800 Subject: [PATCH] Wrap the node info to metadata in the Access Log Protocol (#93) --- ebpf/accesslog.proto | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/ebpf/accesslog.proto b/ebpf/accesslog.proto index 324094b..de5477f 100644 --- a/ebpf/accesslog.proto +++ b/ebpf/accesslog.proto @@ -32,8 +32,8 @@ service EBPFAccessLogService { } message EBPFAccessLogMessage { - // current node information, only not null when first message or have update - EBPFAccessLogNodeInfo node = 1; + // metadata of access log, only not null when first message + EBPFAccessLogMetadata metadata = 1; // local process and remote process connection information AccessLogConnection connection = 2; // kernel level metrics @@ -44,6 +44,18 @@ message EBPFAccessLogMessage { AccessLogProtocolLogs protocolLog = 4; } +message EBPFAccessLogMetadata { + // current node information + EBPFAccessLogNodeInfo node = 1; + // policy for access logs + EBPFAccessLogPolicy policy = 2; +} + +message EBPFAccessLogPolicy { + // which namespaces should be excluded to generate the connection + repeated string excludeNamespaces = 1; +} + message EBPFAccessLogNodeInfo { // Node name string name = 1;