SkyWalking7.0のインストールと展開

1.インストール

バージョン8.0のUIはカスタムクエリステートメントに変更され、カスタマイズされたグラフを構成する必要があるため、バージョン7.0が一時的に使用されます。
Kafkaのデータ転送機能は8.xバージョンの後に追加され、リモートコンピュータールームの展開の問題を解決できます。2020-06にはまだリリースされていません。

Elasticsearchインストールリファレンス:https://blog.csdn.net/zimou5581/article/details/106782184

# 安装jdk,略
 
# 下载安装
wget https://mirrors.tuna.tsinghua.edu.cn/apache/skywalking/7.0.0/apache-skywalking-apm-es7-7.0.0.tar.gz
tar zxf apache-skywalking-apm-es7-7.0.0.tar.gz
mv apache-skywalking-apm-es7  skywalking-es7-7.0
 
# 修改配置,使用 elasticsearch7 作为存储
cd skywalking-es7-7.0
vim config/application.yml
    storage:
      selector: ${SW_STORAGE:elasticsearch7}
      elasticsearch7:
        nameSpace: ${
    
    SW_NAMESPACE:"skywalking"}
        recordDataTTL: ${SW_STORAGE_ES_RECORD_DATA_TTL:7} # Unit is day
        otherMetricsDataTTL: ${SW_STORAGE_ES_OTHER_METRIC_DATA_TTL:7} # Unit is day
        monthMetricsDataTTL: ${SW_STORAGE_ES_MONTH_METRIC_DATA_TTL:3} # Unit is month
        bulkActions: ${SW_STORAGE_ES_BULK_ACTIONS:1000} # Execute the bulk every 1000 requests
        flushInterval: ${SW_STORAGE_ES_FLUSH_INTERVAL:10} # flush the bulk every 10 seconds whatever the number of requests
        concurrentRequests: ${SW_STORAGE_ES_CONCURRENT_REQUESTS:2} # the number of concurrent requests
    :wq
 
# 增加自定义插件配置(没有自定义插件的可以忽略)
vim config/component-libraries.yml
    Candy:
      id: 1001
      languages: Java
    :wq
 
# 启动
./bin/startup.sh
 
# 停止
/opt/stopByName.sh skywalking
 
# 查询分片数据
curl -XGET http://localhost:9200/_cat/shards?v
 
# (特殊需要时使用)清空skywalking在es里的索引和数据
curl -XDELETE http://localhost:9200/skywalking*

2.アプリケーションへのアクセス

<!-- pom.xml 增加skywalking日志依赖 -->
<dependency>
    <groupId>org.apache.skywalking</groupId>
    <artifactId>apm-toolkit-logback-1.x</artifactId>
    <version>7.0.0</version>
</dependency>
 
<!-- logback.xml 增加tid,控制台和日志文件 -->
<encoder charset="UTF-8" class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
    <layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">
        <pattern>[%tid] %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level logger_name:%logger{36} [%thread] %-5level %msg%n</pattern>
    </layout>
</encoder>

3.アプリケーションの起動

# 修改agent配置
vim ./agent/config/agent.config
    collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:192.168.57.91:11800}
    :wq
 
# 插件放入/agent/plugins目录,应用增加jvm参数
java -jar app.jar  -DSW_AGENT_NAME=hello -javaagent:/opt/skywalking-apm-bin/agent/skywalking-agent.jar

キャパシティプランニングリファレンス:https://blog.csdn.net/flysqrlboy/article/details/89009200
構成チューニングリファレンス:https://blog.csdn.net/smooth00/article/details/96479544


公式ウェブサイト:http:
//skywalking.apache.org/zh/ Githubホームページ:https://github.com/apache/skywalking
中国のドキュメント:https://skyapm.github.io/document-cn-translation-of- skywalking / zh / master / guides /
中国のドキュメント(githubへのアクセスは難しい):http://itmuch.com/books/skywalking/
ビルド方法:https://skyapm.github.io/document-cn-translation-of -skywalking /zh/master/guides/How-to-build.html
プラグインリスト:https://skyapm.github.io/document-cn-translation-of-skywalking/zh/master/setup/service-agent/java -agent /Supported-list.html
サードパーティのプラグイン:https://github.com/SkyAPM/java-plugin-extensions(oracleなど)
プラグイン開発ガイド:https://skyapm.github。 io / document-cn-translation- of-skywalking / zh / master / guides / Java-Plugin-Development-Guide.html
ビデオ共有:http://www.itdks.com/ActivityC/search?keyWord = skywalking
ビデオチュートリアル:https://search.bilibili.com/all?keyword = skywalking

おすすめ

転載: blog.csdn.net/zimou5581/article/details/106782299