1.下载地址
Downloads | Apache SkyWalkinghttp://skywalking.apache.org/downloads/
2.文件目录说明
将文件解压后,可看到agent和bin目录:
Agent:作为探针,安装在服务器端,进行数据采集和上报。
Config:作为后端服务的配置,将采集的信息存在mysql,h2,elasticsearch中。
Bin:在该目录中有oapservice就是backend的后端服务和webappservice就是ui界面的服务
Webapp:启动ui的安装包
3.backend和ui配置
3.1配置application.yml文件
使用mysql存储采集的数据信息,将其他的存储配置信息注释,注释有elasticsearch,h2,elasticsearch7,influxdb
配置信息如下:
selector: ${SW_STORAGE:mysql}
mysql:
properties:
jdbcUrl: ${SW_JDBC_URL:"jdbc:mysql://localhost:3307/swtest"}
dataSource.user: ${SW_DATA_SOURCE_USER:root}
dataSource.password: ${SW_DATA_SOURCE_PASSWORD:root}
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