Skip to content

Jaeger on CentOS

Published: at 00:00
说明
使用的存储是 Cassandra 3.11.3
本份文档是基于 1.7.0 的版本进行记录的
环境介绍
cassandra version: 3.11.3
cassandra ip: 192.168.1.100
创建Keyspace & table
由于存储使用的是 Cassandra 集群,所以首先要在Cassandra集群创建Jaeger相关的 Keyspace & table

pip install cqlsh

https://github.com/jaegertracing/jaeger

git clone https://github.com/jaegertracing/jaeger.git
cd jaeger/plugin/storage/cassandra/schema/

DATACENTER=dc1 REPLICATION_FACTOR=3 MODE=prod ./create.sh v001.cql.tmpl |  cqlsh --cqlversion="3.4.4" 192.168.1.100

在cassandra里执行 describe keyspaces 查看下有没有创建完成
下载 & 解压 jaeger
https://github.com/jaegertracing/jaeger

wget https://github.com/jaegertracing/jaeger/releases/download/v1.7.0/jaeger-1.7.0-linux-amd64.tar.gz

mkdir -p /opt
mkdir -p /data/logs/jaeger

tar -xzvf ./jaeger-1.7.0-linux-amd64.tar.gz -C /opt
cd /opt/jaeger-1.7.0-linux-amd64/
启动 jaeger-collector
nohup ./jaeger-collector --cassandra.keyspace=jaeger_v1_dc1  --cassandra.servers=192.168.1.100 >> /data/logs/jaeger/collector.log 2>&1 &
启动 jaeger-agent
nohup ./jaeger-agent  --collector.host-port=127.0.0.1:14267 >> /data/logs/jaeger/agent.log 2>&1 &
build jaeger-ui
yum install git -y
yum install -y nodejs
yum install gcc-c++ make
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
yum install yarn
启动 jaeger-query
nohup ./jaeger-query --cassandra.keyspace jaeger_v1_dc1  --cassandra.servers 192.168.1.100 --query.static-files=/opt/jaeger-ui/packages/jaeger-ui/build >> /data/logs/jaeger/query.log 2>&1 &
访问 ui
http://127.0.0.1:16686