Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance eBPF Access Log collecting data #90

Merged
merged 2 commits into from
Dec 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions ebpf/accesslog.proto
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,10 @@ enum AccessLogConnectionTLSMode {
message AccessLogKernelLog {
oneof operation {
AccessLogKernelConnectOperation connect = 1;
AccessLogKernelCloseOperation close = 2;
AccessLogKernelReadOperation read = 3;
AccessLogKernelWriteOperation write = 4;
AccessLogKernelAcceptOperation accept = 2;
AccessLogKernelCloseOperation close = 3;
AccessLogKernelReadOperation read = 4;
AccessLogKernelWriteOperation write = 5;
}
}

Expand Down Expand Up @@ -188,6 +189,13 @@ message AccessLogKernelConnectOperation {
bool success = 3;
}

message AccessLogKernelAcceptOperation {
// Starting to accept socket timestamp
EBPFTimestamp startTime = 1;
// Finish accept operation timestamp
EBPFTimestamp endTime = 2;
}

message AccessLogKernelCloseOperation {
// Starting to close the connection timestamp
EBPFTimestamp startTime = 1;
Expand Down Expand Up @@ -278,8 +286,10 @@ message AccessLogKernelReadL2Metrics {
uint32 totalPackageCount = 2;
// total package size
uint64 totalPackageSize = 3;
// total package from receive to enqueue(wait for reading) duration(nanosecond)
// total duration(nanosecond) of all data packets queued (waiting to be read).
uint64 totalPackageToQueueDuration = 4;
// total duration(nanosecond) of all data packets read from the queue.
uint64 totalRcvPackageFromQueueDuration = 5;
}

message AccessLogKernelReadL3Metrics {
Expand Down
Loading