skywaling安装目录在windows 环境上最好目录不要带空格
9.4.0版本需要 java11
安装好java后直接启动bin目录下startup.bat
启动后通过8080端口访问dashboard
.net安装nuget包【SkyAPM.Agent.AspNetCore】
添加配置文件skyapm.json 并设置发布时复制
{
"SkyWalking": {
"ServiceName": "service1",
"Namespace": "",
"HeaderVersions": [
"sw8"
],
"Sampling": {
"SamplePer3Secs": -1,
"Percentage": -1.0
},
"Logging": {
"Level": "Information",
"FilePath": "logs\\skyapm-{Date}.log"
},
"Transport": {
"Interval": 3000,
"ProtocolVersion": "v8",
"QueueSize": 30000,
"BatchSize": 3000,
"gRPC": {
"Servers": "192.168.2.171:11800",
"Timeout": 10000,
"ConnectTimeout": 10000,
"ReportTimeout": 600000,
"Authentication": ""
}
}
}
}
配置skywalking
ConfigureServices中添加
services.AddSkyApmExtensions(); //添加Skywalking相关配置