首页 > 其他分享 >dubbo微服务链路追踪案例-skywalking

dubbo微服务链路追踪案例-skywalking

时间:2022-09-01 15:11:30浏览次数:62  
标签:bin dubbo zookeeper agent 链路 apache skywalking

zk 10.0.0.7

consumer 10.0.0.13

provider 10.0.0.17

skywalking 10.0.0.4

es 10.0.0.2

安装jdk

wget https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.rpm
rpm -ivh jdk-18_linux-x64_bin.rpm
java -version

下载并配置zk

wget https://dlcdn.apache.org/zookeeper/zookeeper-3.6.3/apache-zookeeper-3.6.3-bin.tar.gz --no-check-certificate
tar xvf apache-zookeeper-3.6.3-bin.tar.gz
cd /apps/apache-zookeeper-3.6.3-bin/conf
cp zoo_sample.cfg zoo.cfg

 启动

[root@VM-0-3-centos bin]# cd /apps/apache-zookeeper-3.6.3-bin/bin
[root@VM-0-3-centos bin]# ./zkServer.sh start
/usr/bin/java
ZooKeeper JMX enabled by default
Using config: /apps/apache-zookeeper-3.6.3-bin/bin/../conf/zoo.cfg
Starting zookeeper ... 
STARTED
[root@VM-0-3-centos bin]# ./zkServer.sh status
/usr/bin/java
ZooKeeper JMX enabled by default
Using config: /apps/apache-zookeeper-3.6.3-bin/bin/../conf/zoo.cfg
Client port found: 2181. Client address: localhost. Client SSL: false.
Mode: standalone

provider和consumer都操作

yum install java-1.8.0-openjdk -y
wget https://dlcdn.apache.org/skywalking/java-agent/8.11.0/apache-skywalking-java-agent-8.11.0.tgz --no-check-certificate
tar -xvf apache-skywalking-java-agent-8.11.0.tgz -C /apps/
vim /data/skywalking-agent/config/agent.config
  # The group name is optional only.
  agent.service_name=${SW_AGENT_NAME:dubbo}
  
  # The agent namespace
  agent.namespace=${SW_AGENT_NAMESPACE:dubbo}
  # Backend service addresses.
  collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:10.0.0.4:11800}

provider

上传包 链接: https://pan.baidu.com/s/1KPELMK0ktxHO3fvUN0QXYg?pwd=8n22 提取码: 8n22

修改zk地址和dubbo启动脚本

tar -xvf dubbo-demo-provider-2.1.5-assembly.tar.gz -C /apps

vim dubbo-demo-provider-2.1.5/conf/dubbo.properties
  dubbo.registry.address=zookeeper://10.0.0.7:2181

vim dubbo-demo-provider-2.1.5/bin/start.sh 
    -javaagent:/data/skywalking-agent/skywalking-agent.jar
  
./bin/start.sh

consumer

tar xvf dubbo-demo-consumer-2.1.5-assembly.tar.gz -C /apps/

vim /apps/dubbo-demo-consumer-2.1.5/conf/dubbo.properties 
 dubbo.registry.address=zookeeper://10.0.0.7:2181
 
 vim dubbo-demo-provider-2.1.5/bin/start.sh 
    -javaagent:/data/skywalking-agent/skywalking-agent.jar
 
 ./bin/start.sh

启动成功日志provider

启动成功日志 consumer

再去观察skywalking已经有数据了

标签:bin,dubbo,zookeeper,agent,链路,apache,skywalking
From: https://www.cnblogs.com/zyyang1993/p/16636387.html

相关文章

  • Dubbo源码(九) - 服务调用过程
    1.前言本文基于Dubbo2.6.x版本,中文注释版源码已上传github:xiaoguyu/dubbo源码分析均基于官方Demo,路径:dubbo/dubbo-demo如果没有看过之前Dubbo系列的文章,建议先去看看。......
  • 那些年我们一起踩过的Dubbo坑
    前言微服务架构在如今的9102年已经不是什么新鲜的话题了,但是怎么做好微服务架构,却又是一个永恒的话题。比如服务粒度的划分,怎么控制好粗细?服务划分后,对于项目的部......
  • 应用性能监控:SkyWalking
    目录SkyWalking简介SkyWalking搭建平台后端(Backend)平台前端(UI)JavaAgent(Java应用监控)JavaAgent下载Java演练项目SkyWalking监控SkyWalking简介SkyWalking是一......
  • 字节跳动端智能工程链路 Pitaya 的架构设计
    ClientAI是字节跳动产研架构下属的端智能团队,负责端智能AI框架和平台的建设,也负责模型和算法的研发,为字节跳动开拓端上智能新场景。本文介绍的Pitaya是由字节跳动的......
  • Dubbo-admin+Zookeeper 的环境搭建实操与 Could-not-extract-archive 报错踩坑
    ⬇️点击“下方链接”,提升测试核心竞争力!>>更多技术文章分享和免费资料领取$brewinstallzookeeper==>Downloadinghttps://homebrew.bintray.com/bottles/zookeeper-......
  • HCIA学习笔记二十六:手工负载分担模式二层链路聚合
    一、链路聚合的应用场景• 链路聚合一般部署在核心结点,以便提升整个网络的数据吞吐量。二、链路聚合• 链路聚合能够提高链路带宽,增强网络可用性,支持负载分担。三......
  • tomcat实现链路追踪-skywalking
    下载软件包wgethttps://archive.apache.org/dist/tomcat/tomcat-8/v8.5.82/bin/apache-tomcat-8.5.82.tar.gzwgethttps://download.oracle.com/java/18/latest/jdk-18_......
  • halo博客实现链路追踪案例-skywalking
    es10.0.0.17skywalking10.0.0.2halo10.0.0.14先部署一个halo博客安装jdkyuminstalljava-11-openjdk-y下载halo博客jar包和skywalking-java-agent包wgethttp......
  • skywalking部署
    ES:2核4G10.0.0.16Skywalking:2核8G 10.0.0.12安装jdk#wgethttps://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.rpm#rpm-ivhjdk-18_linux-x64_bi......
  • 尚硅谷-Dubbo篇
    参考链接:https://www.bilibili.com/video/BV1ns411c7jV?p=30&vd_source=510ec700814c4e5dc4c4fda8f06c10e8目录......