|
|
||
|---|---|---|
| .. | ||
| JVM-Protocol.md | ||
| README.md | ||
| Skywalking-Cross-Process-Propagation-Headers-Protocol-v1.md | ||
| Trace-Data-Protocol.md | ||
README.md
Protocols
There are two types of protocols list here.
-
Probe Protocol. Include the descriptions and definitions about how agent send collected metric data and traces, also the formats of each entities.
-
Query Protocol. The backend provide query capability to SkyWalking own UI and others. These queries are based on GraphQL.
Probe Protocols
They also related to the probe group, for understand that, look Concepts and Designs document. These groups are Language based native agent protocol, Service Mesh protocol and 3rd-party instrument protocol.
Register Protocol
Include service, service instance, network address and endpoint meta data register. Purposes of register are
- For service, network address and endpoint, register returns the unique ID of register object, usually an integer. Probe can use that to represent the literal String for data compression. Further, some protocols accept IDs only.
- For service instance, register returns a new unique ID for every new instance. Every service instance register must contain the service ID.
Language based native agent protocol
This protocol is combined from two parts:
- Cross Process Propagation Headers Protocol is for in-wire propagation. By following this protocol, the trace segments in different processes could be linked.
- SkyWalking Trace Data Protocol define the communication way and format between agent and backend.
Service Mesh probe protocol
The probe in sidecar or proxy could use this protocol to send data to backendEnd. This service provided by gRPC, requires the following key info:
- Service Name or ID at both sides.
- Service Instance Name or ID at both sides.
- Endpoint. URI in HTTP, service method full signature in gRPC.
- Latency. In milliseconds.
- Response code in HTTP
- Status. Success or fail.
- Protocol. HTTP, gRPC
- DetectPoint. In Service Mesh sidecar,
clientorserver. In normal L7 proxy, value isproxy.
3rd-party instrument protocol
3rd-party instrument protocols are not defined by SkyWalking. They are just protocols/formats, which SkyWalking is compatible and could receive from their existed libraries. SkyWalking starts with supporting Zipkin v1, v2 data formats.
Backend is based on modulization principle, so very easy to extend a new receiver to support new protocol/format.
Query Protocol
Query protocol follows GraphQL grammar, provides data query capabilities, which depends on your analysis metrics.
There are 5 dimensionality data is provided.
- Metadata. Metadata includes the brief info of the whole under monitoring services and their instances, endpoints, etc. Use multiple ways to query this meta data.
- Metric. Metric query targets all the objects defined in OAL script. You could get the metric data in linear or thermodynamic matrix formats based on the aggregation functions in script.
- Aggregation. Aggregation query means the metric data need a secondary aggregation in query stage, which makes the query
interfaces have some different arguments. Such as,
TopNlist of services is a very typical aggregation query, metric stream aggregation just calculates the metric values of each service, but the expected list needs ordering metric data by the values. - Trace. Query distributed traces by this.
- Alarm. Through alarm query, you can have alarm trend and details.
The actual query GraphQL scrips could be found in here.