一、安裝
# 1.下载
cd /data/
wget https://archive.apache.org/dist/skywalking/8.7.0/apache-skywalking-apm-es7-8.7.0.tar.gz
tar -xzvf apache-skywalking-apm-es7-8.7.0.tar.gzrm
rm -rf apache-skywalking-apm-es7-8.7.0.tar.gz
# 2.配置 数据存储为elasticsearch
cd apache-skywalking-apm-bin-es7/config
vim application.yml
storage:
selector: ${SW_STORAGE:elasticsearch7}
elasticsearch7:
nameSpace: ${SW_NAMESPACE:""}
clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:127.0.0.1:9200}
# 3.配置web查看端口
cd apache-skywalking-apm-bin-es7/webapp
vim webapp.yml
server:
port: 9203
# 4.启动
cd apache-skywalking-apm-bin-es7/bin
./startup.sh
二、Java docker agent 配置
参考:https://blog.youkuaiyun.com/gre_999/article/details/101726367
三、警告配置
钉钉警告通知
参考文档:https://skywalking.apache.org/docs/main/latest/en/setup/backend/backend-alarm/#rules
cd /data/apache-skywalking-apm-bin-es7/config
vim
dingtalkHooks:
textTemplate: |-
{
"msgtype": "text",
"text": {
"content": "多利斯 SkyWalking 警告: \n %s."
}
}
webhooks:
- url: https://oapi.dingtalk.com/robot/send?access_token=xxxxx
secret: