当前位置:网站首页>一文了解Zipkin
一文了解Zipkin
2022-07-17 05:02:00 【小新爱编程】
集成Zipkin
Zipkin 分为两端,一个是 Zipkin 服务端,一个是 Zipkin 客户端,客户端也就是微服务的应用。客户端会配置服务端的 URL 地址,一旦发生服务间的调用的时候,会被配置在微服务里面的 Sleuth 的监听器监听,并生成相应的 Trace 和 Span 信息发送给服务端。
1.Zipkin详解

Collector:收集器组件,它主要用于处理从外部系统发送过来的跟踪信息,将这些信息转换为Zipkin内部处理的Span格式,以支持后续的存储、分析、展示等功能。
Storage:存储组件,它主要对处理收集器接收到的跟踪信息,默认会将这些信息存储在内存中,我们也可以修改此存储策略,通过使用其他存储组件将跟踪信息存储到 数据库或es 中。
RESTful API:API组件,它主要用来提供外部访问接口。比如给客户端展示跟踪信息,或是外接系统访问以实现监控等。
Web UI:UI组件,基于API组件实现的上层应用。通过UI组件用户可以方便而有直观地查询和分析跟踪信息。
2. Zipkin服务端的搭建。
https://dl.bintray.com/openzipkin/maven/io/zipkin/java/zipkin-server/
启动zipkin
Java -jar zipkin.jar
3. 搭建zipkin的客户端。
- 引入依赖

- 配置文件

4.总结
Zipkin是 Twitter 的一个开源项目,基于 Google Dapper实现。可以使用它来收集各个服务器上请求链路的跟踪数据,并通过它提供的 REST API 接口来辅助我们查询跟踪数据以实现对分布式系统的监控程序,从而及时地发现系统中出现的延迟升高问题并找出系统性能瓶颈的根源。除了面向开发的API接口之外,它也提供了方便的 UI 组件帮助我们直观的搜索跟踪信息和分析请求链路明细,比如:可以查询某段时间内各用户请求的处理时间等。
边栏推荐
- [Lipschitz] simulation of Lipschitz Lipschitz exponent based on MATLAB
- UE plug-in electronicnodes 5.0.0/4.23-4.27
- 数据库与开源的未来
- 拥抱声明式UI
- Usage scenarios and usage of judgment and rounding down in MySQL
- 负载均衡器ribbon实战
- MySQL one line to many lines (split according to specific symbols)
- Deleting snapshot: error deleting snapshot: Dictionary problem
- [TA frost wolf \u may - hundred people plan] Figure 2.5 bump mapping
- 【FPGA教程案例26】在FPGA中通过verilog来实现小数的基础运算
猜你喜欢
![Service end interface test - test point of interface test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]](/img/62/ae0d6f5654c1352437ac99947d25e4.png)
Service end interface test - test point of interface test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]

【FPGA教程案例27】通过Verilog实现双口RAM乒乓结构

Unit UMP Packaging Black Screen issue Summary

Notes on Advanced Mathematics: selected exercises of Wu Yue

Eureka, take advantage of the tens of millions of daily visits!

Project structure of wechat applet

Load balancer ribbon practice

Blessing for the elderly popular short video wechat applet source code download support traffic master

Mongo Db单机版的安装和快速使用

Constraints on MySQL tables (Basics)
随机推荐
[FPGA tutorial case 26] realize the basic operation of decimals through Verilog in FPGA
Wechat applet source code of high imitation Netease cloud music UI
Website online package APK system source code
Constraints on MySQL tables (Basics)
知识图谱de构建与应用(六):知识图谱的存储、服务与质量
【FPGA教程案例27】通过Verilog实现双口RAM乒乓结构
[vuforia] simple logic of image recognition
赚钱大师小程序【最新版5.9.9】商城/佣金即时提现/分销推广/话费充值/美团饿了么外卖
接口的参数返回封装类Result
MySQL必知必会!!!看这一篇就足够了!!!
Unity UMP打包黑屏问题总结
知识图谱de构建与应用(七):大规模知识图谱预训练
谷歌浏览器截全图小技巧
itext修改pdf文字
Load balancer ribbon practice
Quickly master Mipi development strategy
Demo analysis of sliding conflict external interception method
swagger的坑
Monitoring and alarm of kubernetes
PHP array_ Filter empty leave 0, false