Jaeger on Aliyun Log Service 是基于 Jeager 开发的分布式追踪系统,支持将采集到的追踪数据持久化到日志服务中,并通过 Jaeger 的原生接口进行查询和展示。
Jaeger on Aliyun Log Service 包含 Agent、Collector 和 Query 等组件。其中 Collector 和 Zipkin 做了兼容,它暴露的9411
端口可以接收 Zipkin libraries 发送过来的数据。
- 开通日志服务。
- 启动 jaeger-collector、jaeger-query。
- 将采集到的数据配置发往 jaeger-collector。
- 使用 jaeger UI 对追踪数据进行查询分析。
登录日志服务控制台,创建用于存储追踪数据的 project、logstore。
- 下载 docker-compose 模板 aliyunlog-jaeger-docker-compose.yml。
- 运行如下命令启动 jaeger-collector,jaeger-query。
docker-compose -f aliyunlog-jaeger-docker-compose.yml up
注意:运行该命令之前请替换如下参数为真实值 ${PROJECT}、${ENDPOINT}、${ACCESS_KEY_ID}、${ACCESS_KEY_SECRET}、${SPAN_LOGSTORE}
以 OpenZipkin Java libraries brave 为例,配置 endpoint 将数据发往 jaeger-collector。