Skip to content

Latest commit

 

History

History
118 lines (75 loc) · 2.19 KB

SpringCloud.md

File metadata and controls

118 lines (75 loc) · 2.19 KB

Spring Cloud


Nacos

https://nacos.io/zh-cn/

https://nacos.io/zh-cn/docs/quick-start.html

./bin/startup.sh -m standalone

http://localhost:8848/nacos

Prometheus

https://prometheus.io/download/

./prometheus

# or


er run \
    -p 9090:9090 \
    -v "$PWD"/prometheus.yml:/etc/prometheus/prometheus.yml \
    prom/prometheus

Grafana

https://grafana.com/grafana/download?platform=mac

brew update

brew install grafana

brew info grafana

# 启动
/usr/local/opt/grafana/bin/grafana-server --config /usr/local/etc/grafana/grafana.ini \
--homepath /usr/local/opt/grafana/share/grafana --packaging=brew \
cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana \
cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins
http://localhost:3000/

# 4701
docker pull grafana/grafana:6.5.0
docker run -d -p 3000:3000 --name grafana grafana/grafana:6.5.0

docker run -it -p 3000:3000 --name grafana grafana/grafana:6.5.0

Zipkin

https://zipkin.io/pages/quickstart.html

docker run -d -p 9411:9411 openzipkin/zipkin

Skywalking

https://skywalking.apache.org/downloads/

wget https://mirrors.tuna.tsinghua.edu.cn/apache/skywalking/8.7.0/apache-skywalking-apm-8.7.0.tar.gz

tar -xvf apache-skywalking-apm-8.7.0.tar.g

cd apache-skywalking-apm-bin

# start
./bin/startup.sh

# stop
jps -lvm | grep -i 'sky' | grep -v 'agent' | awk '{print $1}' | xargs kill -9


# 测试dashboard
curl http://localhost:8080/

# 赋值文件
sh deploy.sh

# 启动
java -javaagent:z-deploy/agent1/skywalking-agent.jar -jar z-deploy/ms-gateway-0.0.1-SNAPSHOT.jar
java -javaagent:z-deploy/agent2/skywalking-agent.jar -jar z-deploy/ms-customer-0.0.1-SNAPSHOT.jar
java -javaagent:z-deploy/agent3/skywalking-agent.jar -jar z-deploy/ms-provider-0.0.1-SNAPSHOT.jar

# 测试
curl http://localhost:8800/lbapi/customer/test3
agent.service_name=${SW_AGENT_NAME:user-center}
collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:192.168.100.17:11800}
curl http://localhost:8800/lbapi/customer/test3

ab

ab -n 1000 -c 10 http://localhost:8800/lbapi/customer/test3