Scopes and Fields

Using the Aggregation Function, the requests will be grouped by time and Group Key(s) in each scope.

SCOPE Service

This calculates the metrics data from each request of the service.

NameRemarksGroup KeyType
nameThe name of the service.string
layerLayer represents an abstract framework in the computer science, such as operation system(OS_LINUX layer), Kubernetes(k8s layer)enum
serviceInstanceNameThe name of the service instance ID.string
endpointNameThe name of the endpoint, such as a full path of HTTP URI.string
latencyThe time taken by each request.int
statusIndicates the success or failure of the request.bool(true for success)
httpResponseStatusCodeThe response code of the HTTP response, and if this request is the HTTP call. E.g. 200, 404, 302int
rpcStatusCodeThe string value of the rpc response code.string
typeThe type of each request. Such as: Database, HTTP, RPC, gRPC.enum
tagsThe labels of each request. Each value is made up by TagKey:TagValue in the segment.List<String>
tagThe key-value pair of span tags in the segment.Map<String, String>
sideCar.internalErrorCodeThe sidecar/gateway proxy internal error code. The value is based on the implementation.string
tcpInfo.receivedBytesThe received bytes of the TCP traffic, if this request is a TCP call.long
tcpInfo.sentBytesThe sent bytes of the TCP traffic, if this request is a TCP call.long

SCOPE ServiceInstance

This calculates the metrics data from each request of the service instance.

NameRemarksGroup KeyType
nameThe name of the service instance, such as ip:port@Service Name. Note: Currently, the native agent uses uuid@ipv4 as the instance name, which does not assist in setting up a filter in aggregation.string
serviceNameThe name of the service.string
endpointNameThe name of the endpoint, such as a full path of the HTTP URI.string
latencyThe time taken by each request.int
statusIndicates the success or failure of the request.bool(true for success)
httpResponseStatusCodeThe response code of the HTTP response, and if this request is the HTTP call. E.g. 200, 404, 302int
rpcStatusCodeThe string value of the rpc response code.string
typeThe type of each request, such as Database, HTTP, RPC, or gRPC.enum
tagsThe labels of each request. Each value is made up by TagKey:TagValue in the segment.List<String>
tagThe key-value pair of span tags in the segment.Map<String, String>
sideCar.internalErrorCodeThe sidecar/gateway proxy internal error code. The value is based on the implementation.string
tcpInfo.receivedBytesThe received bytes of the TCP traffic, if this request is a TCP call.long
tcpInfo.sentBytesThe sent bytes of the TCP traffic, if this request is a TCP call.long

Secondary scopes of ServiceInstance

This calculates the metrics data if the service instance is a JVM and collects through javaagent.

  1. SCOPE ServiceInstanceJVMCPU
NameRemarksGroup KeyType
nameThe name of the service instance, such as ip:port@Service Name. Note: Currently, the native agent uses uuid@ipv4 as the instance name, which does not assist in setting up a filter in aggregation.string
serviceNameThe name of the service.string
usePercentThe percentage of CPU time spent.double
  1. SCOPE ServiceInstanceJVMMemory
NameRemarksGroup KeyType
nameThe name of the service instance, such as ip:port@Service Name. Note: Currently, the native agent uses uuid@ipv4 as the instance name, which does not assist in setting up a filter in aggregation.string
serviceNameThe name of the service.string
heapStatusIndicates whether the metric has a heap property or not.bool
initSee the JVM documentation.long
maxSee the JVM documentation.long
usedSee the JVM documentation.long
committedSee the JVM documentation.long
  1. SCOPE ServiceInstanceJVMMemoryPool
NameRemarksGroup KeyType
nameThe name of the service instance, such as ip:port@Service Name. Note: Currently, the native agent uses uuid@ipv4 as the instance name, which does not assist in setting up a filter in aggregation.string
serviceNameThe name of the service.string
poolTypeThe type may be CODE_CACHE_USAGE, NEWGEN_USAGE, OLDGEN_USAGE, SURVIVOR_USAGE, PERMGEN_USAGE, or METASPACE_USAGE based on different versions of JVM.enum
initSee the JVM documentation.long
maxSee the JVM documentation.long
usedSee the JVM documentation.long
committedSee the JVM documentation.long
  1. SCOPE ServiceInstanceJVMGC
NameRemarksGroup KeyType
nameThe name of the service instance, such as ip:port@Service Name. Note: Currently, the native agent uses uuid@ipv4 as the instance name, which does not assist in setting up a filter in aggregation.string
serviceNameThe name of the service.string
phaseIncludes both NEW and OLD.Enum
timeThe time spent in GC.long
countThe count in GC operations.long
  1. SCOPE ServiceInstanceJVMThread
NameRemarksGroup KeyType
nameThe name of the service instance, such as ip:port@Service Name. Note: Currently, the native agent uses uuid@ipv4 as the instance name, which does not assist in setting up a filter in aggregation.string
serviceNameThe name of the service.string
liveCountThe current number of live threads.long
daemonCountThe current number of daemon threads.long
peakCountThe current number of peak threads.long
runnableStateThreadCountThe current number of threads in runnable state.long
blockedStateThreadCountThe current number of threads in blocked state.long
waitingStateThreadCountThe current number of threads in waiting state.long
timedWaitingStateThreadCountThe current number of threads in time-waiting state.long
  1. SCOPE ServiceInstanceJVMClass
NameRemarksGroup KeyType
nameThe name of the service instance, such as ip:port@Service Name. Note: Currently, the native agent uses uuid@ipv4 as the instance name, which does not assist in setting up a filter in aggregation.string
serviceNameThe name of the service.string
loadedClassCountThe number of classes that are currently loaded in the JVM.long
totalUnloadedClassCountThe total number of classes unloaded since the JVM has started execution.long
totalLoadedClassCountThe total number of classes that have been loaded since the JVM has started execution.long

SCOPE Endpoint

This calculates the metrics data from each request of the endpoint in the service.

NameRemarksGroup KeyType
nameThe name of the endpoint, such as a full path of the HTTP URI.string
serviceNameThe name of the service.string
serviceNodeTypeThe type of node to which the Service or Network address belongs, such as Normal, Database, MQ, or Cache.enum
serviceInstanceNameThe name of the service instance ID.string
latencyThe time taken by each request.int
statusIndicates the success or failure of the request.bool(true for success)
httpResponseStatusCodeThe response code of the HTTP response, and if this request is the HTTP call. E.g. 200, 404, 302int
rpcStatusCodeThe string value of the rpc response code.string
typeThe type of each request, such as Database, HTTP, RPC, or gRPC.enum
tagsThe labels of each request. Each value is made up by TagKey:TagValue in the segment.List<String>
tagThe key-value pair of span tags in the segment.Map<String, String>
sideCar.internalErrorCodeThe sidecar/gateway proxy internal error code. The value is based on the implementation.string
tcpInfo.receivedBytesThe received bytes of the TCP traffic, if this request is a TCP call.long
tcpInfo.sentBytesThe sent bytes of the TCP traffic, if this request is a TCP call.long

SCOPE ServiceRelation

This calculates the metrics data from each request between services.

NameRemarksGroup KeyType
sourceServiceNameThe name of the source service.string
sourceServiceInstanceNameThe name of the source service instance.string
sourceLayerThe layer of the source service.enum
destServiceNameThe name of the destination service.string
destServiceInstanceNameThe name of the destination service instance.string
destLayerThe layer of the destination service.enum
endpointThe endpoint used in this call.string
componentIdThe ID of component used in this call.yesstring
latencyThe time taken by each request.int
statusIndicates the success or failure of the request.bool(true for success)
httpResponseStatusCodeThe response code of the HTTP response, and if this request is the HTTP call. E.g. 200, 404, 302int
rpcStatusCodeThe string value of the rpc response code.string
typeThe type of each request, such as Database, HTTP, RPC, or gRPC.enum
detectPointWhere the relation is detected. The value may be client, server, or proxy.yesenum
tlsModeThe TLS mode between source and destination services, such as service_relation_mtls_cpm = from(ServiceRelation.*).filter(tlsMode == "mTLS").cpm()string
sideCar.internalErrorCodeThe sidecar/gateway proxy internal error code. The value is based on the implementation.string
tcpInfo.receivedBytesThe received bytes of the TCP traffic, if this request is a TCP call.long
tcpInfo.sentBytesThe sent bytes of the TCP traffic, if this request is a TCP call.long

SCOPE ServiceInstanceRelation

This calculates the metrics data from each request between service instances.

NameRemarksGroup KeyType
sourceServiceNameThe name of the source service.string
sourceServiceInstanceNameThe name of the source service instance.string
sourceServiceLayerThe layer of the source service.enum
destServiceNameThe name of the destination service.
destServiceInstanceNameThe name of the destination service instance.string
destServiceLayerThe layer of the destination service.enum
endpointThe endpoint used in this call.string
componentIdThe ID of the component used in this call.yesstring
latencyThe time taken by each request.int
statusIndicates the success or failure of the request.bool(true for success)
httpResponseStatusCodeThe response code of the HTTP response, and if this request is the HTTP call. E.g. 200, 404, 302int
rpcStatusCodeThe string value of the rpc response code.string
typeThe type of each request, such as Database, HTTP, RPC, or gRPC.enum
detectPointWhere the relation is detected. The value may be client, server, or proxy.yesenum
tlsModeThe TLS mode between source and destination service instances, such as service_instance_relation_mtls_cpm = from(ServiceInstanceRelation.*).filter(tlsMode == "mTLS").cpm()string
sideCar.internalErrorCodeThe sidecar/gateway proxy internal error code. The value is based on the implementation.string
tcpInfo.receivedBytesThe received bytes of the TCP traffic, if this request is a TCP call.long
tcpInfo.sentBytesThe sent bytes of the TCP traffic, if this request is a TCP call.long

SCOPE EndpointRelation

This calculates the metrics data of the dependency between endpoints. This relation is hard to detect, and it depends on the tracing library to propagate the previous endpoint. Therefore, the EndpointRelation scope aggregation comes into effect only in services under tracing by SkyWalking native agents, including auto instrument agents (like Java and .NET), OpenCensus SkyWalking exporter implementation, or other tracing context propagation in SkyWalking specification.

NameRemarksGroup KeyType
endpointThe parent endpoint in the dependency.string
serviceNameThe name of the service.string
serviceNodeTypeThe type of node to which the Service or Network address belongs, such as Normal, Database, MQ, or Cache.enum
childEndpointThe endpoint used by the parent endpoint in row(1).string
childServiceNameThe endpoint used by the parent service in row(1).string
childServiceNodeTypeThe type of node to which the Service or Network address belongs, such as Normal, Database, MQ, or Cache.string
childServiceInstanceNameThe endpoint used by the parent service instance in row(1).string
rpcLatencyThe latency of the RPC between the parent endpoint and childEndpoint, excluding the latency caused by the parent endpoint itself.
componentIdThe ID of the component used in this call.yesstring
statusIndicates the success or failure of the request.bool(true for success)
httpResponseStatusCodeThe response code of the HTTP response, and if this request is the HTTP call. E.g. 200, 404, 302int
rpcStatusCodeThe string value of the rpc response code.string
typeThe type of each request, such as Database, HTTP, RPC, or gRPC.enum
detectPointIndicates where the relation is detected. The value may be client, server, or proxy.yesenum

SCOPE BrowserAppTraffic

This calculates the metrics data from each request of the browser application (browser only).

NameRemarksGroup KeyType
nameThe browser application name of each request.string
countThe number of request, which is fixed at 1.int
trafficCategoryThe traffic category. The value may be NORMAL, FIRST_ERROR, or ERROR.enum
errorCategoryThe error category. The value may be AJAX, RESOURCE, VUE, PROMISE, or UNKNOWN.enum

SCOPE BrowserAppSingleVersionTraffic

This calculates the metrics data from each request of a single version in the browser application (browser only).

NameRemarksGroup KeyType
nameThe single version name of each request.string
serviceNameThe name of the browser application.string
countThe number of request, which is fixed at 1.int
trafficCategoryThe traffic category. The value may be NORMAL, FIRST_ERROR, or ERROR.enum
errorCategoryThe error category. The value may be AJAX, RESOURCE, VUE, PROMISE, or UNKNOWN.enum

SCOPE BrowserAppPageTraffic

This calculates the metrics data from each request of the page in the browser application (browser only).

NameRemarksGroup KeyType
nameThe page name of each request.string
serviceNameThe name of the browser application.string
countThe number of request, which is fixed at 1.int
trafficCategoryThe traffic category. The value may be NORMAL, FIRST_ERROR, or ERROR.enum
errorCategoryThe error category. The value may be AJAX, RESOURCE, VUE, PROMISE, or UNKNOWN.enum

SCOPE BrowserAppPagePerf

This calculates the metrics data from each request of the page in the browser application (browser only).

NameRemarksGroup KeyType
nameThe page name of each request.string
serviceNameThe name of the browser application.string
redirectTimeThe time taken to redirect.int(in ms)
dnsTimeThe DNS query time.int(in ms)
ttfbTimeTime to first byte.int(in ms)
tcpTimeTCP connection time.int(in ms)
transTimeContent transfer time.int(in ms)
domAnalysisTimeDom parsing time.int(in ms)
fptTimeFirst paint time or blank screen time.int(in ms)
domReadyTimeDom ready time.int(in ms)
loadPageTimePage full load time.int(in ms)
resTimeSynchronous load resources in the page.int(in ms)
sslTimeOnly valid for HTTPS.int(in ms)
ttlTimeTime to interact.int(in ms)
firstPackTimeFirst pack time.int(in ms)
fmpTimeFirst Meaningful Paint.int(in ms)

SCOPE Event

This calculates the metrics data from events.

NameRemarksGroup KeyType
nameThe name of the event.string
serviceThe service name to which the event belongs to.string
serviceInstanceThe service instance to which the event belongs to, if any.string
endpointThe service endpoint to which the event belongs to, if any.string
typeThe type of the event, Normal or Error.string
messageThe message of the event.string
parametersThe parameters in the message, see parameters.string

SCOPE DatabaseAccess

This calculates the metrics data from each request of cache system.

NameRemarksGroup KeyType
nameThe service name of virtual database service.string
databaseTypeIdThe ID of the component used in this call.int
latencyThe time taken by each request.int(in ms)
statusIndicates the success or failure of the request.boolean

SCOPE DatabaseSlowStatement

This calculates the metrics data from slow request of cache system , which is used for write or read operation.

NameRemarksGroup KeyType
databaseServiceIdThe service id of virtual cache service.string
statementThe sql statement .string
latencyThe time taken by each request.int(in ms)
traceIdThe traceId of this slow statementstring

SCOPE CacheAccess

This calculates the metrics data from each request of cache system.

NameRemarksGroup KeyType
nameThe service name of virtual cache service.string
cacheTypeIdThe ID of the component used in this call.int
latencyThe time taken by each request.int(in ms)
statusIndicates the success or failure of the request.boolean
operationIndicates this access is used for write or readstring

SCOPE CacheSlowAccess

This calculates the metrics data from slow request of cache system , which is used for write or read operation.

NameRemarksGroup KeyType
cacheServiceIdThe service id of virtual cache service.string
commandThe cache command .string
keyThe cache command key.string
latencyThe time taken by each request.int(in ms)
traceIdThe traceId of this slow accessstring
statusIndicates the success or failure of the request.boolean
operationIndicates this access is used for write or readstring