参考:windows安装使用jaeger链路追踪_windows安装jaeger-CSDN博客
下载:Releases · jaegertracing/jaeger · GitHub
Jaeger – Download Jaeger
目录
1、安装nssm
2、安装运行 elasticsearch
3、安装运行
3.1部署JaegerAgent
3.2部署JaegerCollector
3.3部署JaegerUI
3.4运行 Jaeger
1、安装nssm
下载 https://nssm.cc/download
E:\***\备忘\软件\nssm-2.24\win64 目录添加到 Path 环境变量
2、安装运行 elasticsearch
参考文章:Window部署ElasticSearch-CSDN博客
3、安装运行
压缩包解压缩后目录结构
管理员模式运行cmd命令:部署Jaeger为window服务
说明:
es.username 为 elasticsearch用户名,默认为 elastic
es.password 为 elasticsearch用户密码,默认为 changeme
D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64 为我本机Jaeger目录
3.1部署JaegerAgent
nssm install JaegerAgent D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-agent.exe --reporter.grpc.host-port=localhost:14250
nssm set JaegerAgent AppStdout D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-agent.out.log
nssm set JaegerAgent AppStderr D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-agent.err.log
nssm set JaegerAgent Description Jaeger Agent servicenssm start JaegerAgent
3.2部署JaegerCollector
nssm install JaegerCollector D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-collector.exe --es.server-urls=http://localhost:9200 --es.username=elastic --es.password=changme
nssm set JaegerCollector AppStdout D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-collector.out.log
nssm set JaegerCollector AppStderr D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-collector.err.log
nssm set JaegerCollector Description Jaeger Collector service
nssm set JaegerCollector AppEnvironmentExtra SPAN_STORAGE_TYPE=elasticsearchnssm start JaegerCollector
3.3部署JaegerUI
nssm install JaegerUI D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-query.exe --es.server-urls=http://localhost:9200 --es.username=elastic --es.password=changme
nssm set JaegerUI AppStdout D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-ui.out.log
nssm set JaegerUI AppStderr D:\WebSite\jaeger\jaeger-1.54.0-windows-amd64\jaeger-ui.err.log
nssm set JaegerUI Description Jaeger Query service
nssm set JaegerUI AppEnvironmentExtra SPAN_STORAGE_TYPE=elasticsearchnssm start JaegerUI
3.4运行 Jaeger
打开 http://127.0.0.1:16686/