-
Notifications
You must be signed in to change notification settings - Fork 104
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
Provide eBPF based Access Log Service #88
Conversation
ebpf/monitor/accesslog.proto
Outdated
} | ||
|
||
message AccessLogHTTPProtocolResponse { | ||
int32 statusCode = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember HTTP2 response codes are not only number? Could you confirm?
ebpf/monitor/accesslog.proto
Outdated
oneof timestamp { | ||
EBPFOffsetTimestamp offset = 1; | ||
Instant absolute = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain how this timestamp works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the kernel, we can get different timestamps. In the offset mode, we can only get the timestamp offset(through bpf_ktime_get_ns
), and then we need to add it with the system boot time to get the real-time, that's why I added the system boot time in the node info. But in some kernel methods, we can only get the absolute timestamp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the timestamp sent as always in a bulk at least?
ebpf/monitor/accesslog.proto
Outdated
} | ||
|
||
message EBPFAccessLogNodeNetInterface { | ||
int32 index = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ebpf/monitor/accesslog.proto
Outdated
// kernel level metrics | ||
repeated AccessLogKernelLog kernelLogs = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the kernel log with HTTP log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the period and moment of sending TCP relative logs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we cannot detect the kernel related to the application logs, then they should be sent through a timer.
Otherside, the kernel logs should related with a single application log.
ebpf/monitor/accesslog.proto
Outdated
option java_package = "org.apache.skywalking.apm.network.ebpf.monitor.accesslog.v3"; | ||
option go_package = "skywalking.apache.org/repo/goapi/collect/ebpf/monitor/accesslog/v3"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option java_package = "org.apache.skywalking.apm.network.ebpf.monitor.accesslog.v3"; | |
option go_package = "skywalking.apache.org/repo/goapi/collect/ebpf/monitor/accesslog/v3"; | |
option java_package = "org.apache.skywalking.apm.network.ebpf.accesslog.v3"; | |
option go_package = "skywalking.apache.org/repo/goapi/collect/ebpf/accesslog/v3"; |
I think we don't need monitor
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have moved this proto file into the ebpf
directory.
No description provided.