SkyWalking's backend distribution package consists of the following parts:
bin/cmd scripts: Located in the /bin folder. Includes startup Linux shell and Windows cmd scripts for the backend server and UI startup.
Backend config: Located in the /config folder. Includes settings files of the backend, which are:
application.ymllog4j.xmlalarm-settings.ymlLibraries of backend: Located in the /oap-libs folder. All dependencies of the backend can be found there.
Webapp env: Located in the webapp folder. UI frontend jar file can be found here, together with its webapp.yml setting file.
Requirement: JDK8 to JDK17 are tested. Other versions are not tested and may or may not work.
Before you begin, you should understand that the main purpose of the following quickstart is to help you obtain a basic configuration for previews/demos. Performance and long-term running are NOT among the purposes of the quickstart.
For production/QA/tests environments, see Backend and UI deployment documents.
You can use bin/startup.sh (or cmd) to start up the backend and UI with their default settings, set out as follows:
0.0.0.0/11800 for gRPC APIs and 0.0.0.0/12800 for HTTP REST APIs.In Java, DotNetCore, Node.js, and Istio agents/probes, you should set the gRPC service address to ip/host:11800, and IP/host should be where your backend is.
8080 port and request 127.0.0.1/12800 to run a GraphQL query.Before deploying Skywalking in your distributed environment, you should learn about how agents/probes, the backend, and the UI communicate with each other:
core/default/gRPC* in application.yml) to report data to the backend. Also, the REST service is supported in JSON format.core/default/rest* in application.yml).The default startup scripts are /bin/oapService.sh(.bat). Read the start up mode document to learn other ways to start up the backend.
SkyWalking backend startup behaviours are driven by config/application.yml. Understanding the settings file will help you read this document.
The core concept behind this setting file is that the SkyWalking collector is based on a pure modular design. End-users can switch or assemble the collector features according to their unique requirements.
In application.yml, there are three levels.
selector is optional and can be omitted.Example:
storage: selector: mysql # the mysql storage will actually be activated, while the h2 storage takes no effect h2: properties: jdbcUrl: ${SW_STORAGE_H2_URL:jdbc:h2:mem:skywalking-oap-db;DB_CLOSE_DELAY=-1} dataSource.user: ${SW_STORAGE_H2_USER:sa} metadataQueryMaxSize: ${SW_STORAGE_H2_QUERY_MAX_SIZE:5000} mysql: properties: jdbcUrl: ${SW_JDBC_URL:"jdbc:mysql://localhost:3306/swtest"} dataSource.user: ${SW_DATA_SOURCE_USER:root} dataSource.password: ${SW_DATA_SOURCE_PASSWORD:root@1234} dataSource.cachePrepStmts: ${SW_DATA_SOURCE_CACHE_PREP_STMTS:true} dataSource.prepStmtCacheSize: ${SW_DATA_SOURCE_PREP_STMT_CACHE_SQL_SIZE:250} dataSource.prepStmtCacheSqlLimit: ${SW_DATA_SOURCE_PREP_STMT_CACHE_SQL_LIMIT:2048} dataSource.useServerPrepStmts: ${SW_DATA_SOURCE_USE_SERVER_PREP_STMTS:true} metadataQueryMaxSize: ${SW_STORAGE_MYSQL_QUERY_MAX_SIZE:5000} # other configurations
storage is the module.selector selects one out of all providers listed below. The unselected ones take no effect as if they were deleted.default is the default implementor of the core module.driver, url, ... metadataQueryMaxSize are all setting items of the implementor.At the same time, there are two types of modules: required and optional. The required modules provide the skeleton of the backend. Even though their modular design supports pluggability, removing those modules does not serve any purpose. For optional modules, some of them have a provider implementation called none, meaning that it only provides a shell with no actual logic, typically such as telemetry. Setting - to the selector means that this whole module will be excluded at runtime. We advise against changing the APIs of those modules unless you understand the SkyWalking project and its codes very well.
The required modules are listed here:
SkyWalking provides downsampling time-series metrics features. Query and store at each time dimension (minute, hour, day, month metrics indexes) related to timezone when time formatting.
For example, metrics time will be formatted like yyyyMMddHHmm in minute dimension metrics, which is timezone-related.
By default, SkyWalking's OAP backend chooses the OS default timezone. Please follow the Java and OS documents if you want to override the timezone.
SkyWalking provides different options based on browser UI, CLI and GraphQL to support extensions. But some users may want to query data directly from the storage. For example, in the case of ElasticSearch, Kibana is a great tool for doing this.
By default, SkyWalking saves based64-encoded ID(s) only in metrics entities to reduce memory, network and storage space usages. But these tools usually don't support nested queries and are not convenient to work with. For these exceptional reasons, SkyWalking provides a config to add all necessary name column(s) into the final metrics entities with ID as a trade-off.
Take a look at core/default/activeExtraModelColumns config in the application.yaml, and set it as true to enable this feature.
Note that this feature is simply for 3rd party integration and doesn't provide any new features to native SkyWalking use cases.