Kubernetes Network monitoring
SkyWalking leverages SkyWalking Rover network profiling feature for collecting metrics data from the network. SkyWalking Rover converts data from socket data to metrics using eBPF technology.
Data flow
- SkyWalking OAP server observes which specific k8s pod needs to monitor the network.
- SkyWalking Rover receives tasks from SkyWalking OAP server and executes them, and converts the network data into metrics send to the backend service.
- The SkyWalking OAP Server accesses K8s’s
API Server
to fetch meta info and parses the expression with MAL to aggregate.
Setup
- Setup SkyWalking Rover.
- Enable the network profiling MAL file in the OAP server.
agent-analyzer:
selector: ${SW_AGENT_ANALYZER:default}
default:
meterAnalyzerActiveFiles: ${SW_METER_ANALYZER_ACTIVE_FILES:network-profiling}
Supported metrics
After SkyWalking OAP server receives the metrics from the SkyWalking Rover, it supports to analysis the following data:
- Topology: Based on the process and peer address, the following topology data is supported:
- Relation: Analyze the relationship between local processes, or local process with external pods or services.
- SSL: The socket read or write package with SSL.
- Protocol: The protocols for write or read data.
- TCP socket read and write metrics, including following types:
- Call Per Minute: The count of the socket read or write.
- Bytes: The package size of the socket data.
- Execute Time: The executed time of the socket read or write.
- Connect: The socket connect/accept with peer address count and execute time.
- Close: The socket close the socket count and execute time.
- RTT: The RTT(Round Trip Time) of socket communicate with peer address.
- Local process communicate with peer address exception data, including following types:
- Retransmit: The count of TCP package is retransmitted.
- Drop: The count of TCP package is dropped.