当前位置:网站首页>skywalking 安装部署实践
skywalking 安装部署实践
2022-06-24 00:33:00 【enjoy嚣士】
前言
微服务的链路追踪工具很多,所以在选型时应该考虑各个工具的优缺点,结合业务需要,选出最佳工具。
链路追踪 之 选型 Zipkin、Pinpoint、SkyWalking、CAT对比
skywalking部署实践
下载解压

版本:
apache-skywalking-apm-9.1.0.tar.gz
apache-skywalking-java-agent-8.11.0.tgz
下载之后解压即可使用
微服务中配置skywalking
依赖
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>apm-toolkit-logback-1.x</artifactId>
<version>8.11.0</version>
</dependency>
logback日志配置
<appender name="grpc" class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.mdc.TraceIdMDCPatternLogbackLayout">
<Pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%X{tid}] [%thread] %-5level %logger{36} -%msg%n</Pattern>
</layout>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="grpc" />
</root>
IDEA编辑服务,配置JVM参数

添加JVM参数
-javaagent:D:/work/skywalking/skywalking-agent/skywalking-agent.jar -Dskywalking.agent.service_name=your_service -Dskywalking.collector.backend_service=localhost:11800
重点注意:
Java代理jar包路径
你的服务名称(会显示到skywalkingUI)
后端收集日志的收集器地址信息(这里都在一起,所以不配置也可以)
以上配置,每个服务都需要添加
运行微服务
运行skywalking
进入刚才下载解压的skywalking目录的bin目录
目录路径中输入: cmd 并回车
在出来的命令行中输入startup.bat 并回车
模拟请求
下面是我写的微服务接口http://localhost:9101/getUser/1
调用之后查看skywalking UI http://localhost:8080/general
查看调用拓扑图
查看链路追踪
设置skywalking的存储为elasticsearch
下载elasticsearch
解压并进入bin目录运行elasticsearch文件。
使用localhost:9200 查看是否启动成功
如果现实失败,就去config/jvm.options文件中将启动内存设置小一点。
配置skywalking
编辑文件 apache-skywalking-apm-bin\config\application.yml
修改以上三个地方,其中注意,namespace为上图测试elasticsearch中的cluster_name字段
重启skywalking即可。
边栏推荐
- Android 72021 latest Android interview written test questions sharing
- Synthetic big watermelon games wechat applet source code / wechat game applet source code
- Jeecgboot old version 2 x 3. X how to integrate building block reports?
- The industrial Internet era will be realized by products, technologies and models derived from the industry itself
- Shutter time selector
- Jimureport building block report - table linkage chart topic
- C language: on the right shift of matrix
- Empty encoded password warning reason
- Google Earth engine (GEE) - verification results used by NDVI, NDWI and NDBI to increase classification accuracy (random forest and cart classification)
- Common core resource objects of kubernetes
猜你喜欢

What problems need to be solved by MES management system in the era of intelligent manufacturing

Android Aidl: cross process call service (Aidl service), kotlininvoke function

What are the two types of digital factories

【ICPR 2021】遥感图中的密集小目标检测:Tiny Object Detection in Aerial Images

利用Scanorama高效整合异质单细胞转录组

Confused test / development programmers, different people have different stories and different puzzles
![[Hongke case] how can 3D data become operable information Object detection and tracking](/img/d8/ccda595db67b66eb01f3d55956f4cb.png)
[Hongke case] how can 3D data become operable information Object detection and tracking
![[image detection saliency map] calculation of fish eye saliency map based on MATLAB distortion prompt [including Matlab source code 1903]](/img/36/134c573c2198ca6c88a7c179189f1a.jpg)
[image detection saliency map] calculation of fish eye saliency map based on MATLAB distortion prompt [including Matlab source code 1903]

MIP nerf: anti aliasing multiscale neural radiation field iccv2021

Windows10 security mode entry cycle blue screen repair
随机推荐
DO280OpenShift访问控制--管理项目和账户
使用worker报错:Uncaught DOMException: Failed to construct ‘Worker’: Script at***
Efficient integration of heterogeneous single cell transcriptome with scanorama
Jeecgboot old version 2 x 3. X how to integrate building block reports?
NLP工程师是干什么的?工作内容是什么?
Solve the problem of project dependency red reporting
Social recruitment interview is indispensable -- 1000 interview questions for Android engineers from Internet companies
SQL database: summary of knowledge points, no suspension at the end of the period
Android 3年外包工面试笔记,有机会还是要去大厂学习提升,android开发实习面试题
Dependency Inversion Principle
paddle使用指南
利用Scanorama高效整合异质单细胞转录组
Android - basics you need to know about JNI development, interview questions for Android engineers
Android App bundle exploration, client development interview questions
Throttling and anti shake
What problems need to be solved by MES management system in the era of intelligent manufacturing
智能制造时代下,MES管理系统需要解决哪些问题
[technique of planting grass] spit blood and clean up, and take you to collect goose feathers in a fancy way! Do not spread!!!
Windows10 security mode entry cycle blue screen repair
想开户炒股,通过网上进行股票开户安全吗?-