当前位置:网站首页>Practical sharing of distributed link tracking Jaeger + microservice Pig on Rainbond
Practical sharing of distributed link tracking Jaeger + microservice Pig on Rainbond
2022-08-04 12:14:00 【InfoQ】
- 分布式上下文传播、事务监控
- 根本原因、服务依赖分析
- 性能/延迟优化
- OpenTracing Inspired data model
- Multiple storage backends:Cassandra, Elasticsearch, memory.
- 系统拓扑图
- 服务性能监控(SPM)
- 自适应采样
Jaeger 架构
如何在Rainbond上集成?
OpenTracingAPI
OpenTelemetry
javaagent
java-javaagent:path/to/opentelemetry-javaagent.jar-jar myapp.jar
OpenTelemetryjavaagent
OpenTelemetryjavaagent
JaegerCollector
实践步骤
1. Spring Cloud Pig 源码部署
SpringCloudPig
- Spring Cloud Pig 部署教程
- Spring Cloud Pig 视频教程
2. OpenTelemetry 插件安装
opentelemetry-java-agent
opentelemetry-javaagent.jar
- 团队视图 -> 插件 -> 从应用商店安装插件 -> 搜索
opentelemetry-java-agent
并安装.
3. 部署 Jaeger
Jaeger
4. OpenTelemetry Agent 插件配置
pig-gateway
opentelemetry-java-agent
应用配置组
OTEL_SERVICE_NAME
OTEL_SERVICE_NAME=pig-gateway
OTEL_SERVICE_NAME=pig-auth
5.建立依赖关系
JaegerCollector
Jaeger
JaegerCollector
JaegerCollector
6. Jaeger 快速使用
- 访问 Spring Cloud Pig UI 进行登录,make it generate data.
- 访问
Jaeger-Query
的16686
端口,Open external services to accessJaegerUI
.
- 在 Jaeger Search Search for microservices on the page Pig-gateway 的 Traces
- Service:Select the components of the microservice
- Operation:选择操作类型,例:GET POST、接口、类.....
- Tags:Filter by response headers,例:http.status_code=200 error=true
- Lookback:选择时间
- Max Duration:最大持续时间;Min Duration:Minimum duration.
- Limit Results:限制返回结果数量.
- 找到 Pig-gateway HTTP POST 的 Traces 并包含了 pig-auth Span并进入,It can be seen that the layer-by-layer calls between services and the response time of the interface are clearly displayed,In this way, we can check which service call is slow or has a problem with the call.
spark-dependencies
spark-dependencies
最后
SpringCloud
Jaeger
APM
边栏推荐
猜你喜欢
Leetcode Brush Questions - Path Sum
【目标检测】yolov2特征提取网络------Darknet19结构解析及tensorflow和pytorch实现
国际原子能机构总干事警告称扎波罗热核电站安全形势已“完全失控”
监督和半监督学习下的多标签分类综述
shell之循环语句(for、while、until)
技术分享| 融合调度系统中的电子围栏功能说明
树莓派入门
244 page PDF!"2022 China cloud computing ecological blue book published
如何用一条命令将网页转成电脑 App
Transferring Rich Feature Hierarchies for Robust
随机推荐
ping的原理
隐私计算与数据流通:关系、作用及功能
Tapdata 开源项目基础教程:功能特性及实操演示
【地平线旭日X3派试用体验】从开机到点灯(第一节)
抗积分饱和PID控制器
蒲丰投针学习笔记
11. Network planning and design
你知道吗?那些专属于代码的浪漫~
asp.net解决大文件断点续传
ECCV 2022 | Towards Data Efficient Transformer Object Detectors
Leetcode brush - structure binary tree (105. Once upon a time sequence and the sequence structure binary tree traversal sequence, 106. From the sequence with the sequence structure binary tree travers
TPC藏宝计划IDO自由协议复利模式开发功能分析
外键约束;外键约束
IBM Q复制ALTER ADD COLUMN
The sword refers to the Great Wall Cannon?Official spy photos of Changan's new pickup
如何过一个充满科技感的七夕?华为告诉你
【目标检测】YOLOv4特征提取网络——CSPDarkNet53结构解析及PyTorch实现
电源测试之输出动态响应(Output Dynamic Response Test)
【目标检测】------yolo:xml和txt文件相互转化
你值得拥有的登录注册页面(附赠源码)