当前位置:网站首页>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即可。
边栏推荐
- C语言:结构体数组实现找出最低分学生记录
- What do NLP engineers do? What is the work content?
- ==What is the difference between and equals?
- Mip-NeRF:抗混叠的多尺度神经辐射场ICCV2021
- Comment utiliser l'entrepôt de données pour créer une table de synchronisation
- Confused test / development programmers, different people have different stories and different puzzles
- 【红绿灯识别】基于matlab GUI红绿灯识别【含Matlab源码 1908期】
- C language: recursively implementing factorial of n
- Jeecgboot old version 2 x 3. X how to integrate building block reports?
- Save: software analysis, verification and test platform
猜你喜欢

Learn PWN from CTF wiki - ret2text

智能制造时代下,MES管理系统需要解决哪些问题

Tiktok practice ~ password retrieval

合成大西瓜小游戏微信小程序源码/微信游戏小程序源码

Mip-NeRF:抗混叠的多尺度神经辐射场ICCV2021

Keywords such as extern and struct

C语言:利用自定义函数排序

人工智能技术岗位面试要注意什么?

Save: software analysis, verification and test platform

Confused test / development programmers, different people have different stories and different puzzles
随机推荐
Windows10 security mode entry cycle blue screen repair
Android 3年外包工面试笔记,有机会还是要去大厂学习提升,android开发实习面试题
C语言:关于矩阵右移问题
When the IOT network card device is connected to easycvr, how can I view the streaming IP and streaming time?
ARM学习(7) symbol 符号表以及调试
使用worker报错:Uncaught DOMException: Failed to construct ‘Worker’: Script at***
C语言:百马百担问题求驮法
【第25天】给定一个长度为 n 的数组,统计每个数出现的次数 | 计数哈希
逻辑的定义
Pure JS implementation determines whether the IP is pinged
Android App bundle exploration, client development interview questions
如何入门机器学习?
Nlp-d58-nlp competition d27 & question brushing D14 & Paper Reading & MathType
What do NLP engineers do? What is the work content?
EasyCVR程序以服务启动异常,进程启动却正常,是什么原因?
社招面试必不可少——《1000 道互联网大厂 Android工程师面试题》
9次Android面试经验总结,已收字节,阿里,高级android面试答案
【ICCV Workshop 2021】基于密度图的小目标检测:Coarse-grained Density Map Guided Object Detection in Aerial Images
. Net
What problems need to be solved by MES management system in the era of intelligent manufacturing