SkyWalking 視訊合集
摘要: 原創出處 http://www.iocoder.cn/SkyWalking/videos/ 「芋道原始碼」歡迎轉載,保留摘要,謝謝!
- ofollow,noindex" target="_blank">01 - 通過 Skywalking-5.x 版本的原始碼構建並執行
- 02 - 通過 Skywalking-6.x 版本的原始碼構建並執行
關注**微信公眾號:【芋道原始碼】**有福利:
01 - 通過 Skywalking-5.x 版本的原始碼構建並執行
視訊地址 :point_right: : 嗶哩嗶哩 | 騰訊視訊
參考:
原始碼地址
https://github.com/apache/incubator-skywalking.git
從GitHub下載程式碼編譯
在IntelliJ IDEA中編譯工程
- 準備環境: git, jdk8,Maven
-
git clone https://github.com/apache/incubator-skywalking.git
-
cd incubator-skywalking/
-
git checkout -b 5.x
-
git submodule init
-
git submodule update
-
mvn clean package -DskipTests
- 將
/incubator-skywalking/apm-protocol/apm-network/target/generated-sources/protobuf
目錄下面grpc-java
和java
目錄右鍵設定為Generated Rources Root
. - 將
apm-collector/apm-collector-remote/apm-remote-grpc-provider/target/generated-sources/protobuf
目錄下面grpc-java
和java
目錄右鍵設定為Generated Rources Root
.
Elasticsearch 啟動:
Skywalking 相關配置說明
#cluster: #zookeeper: #hostPort: localhost:2181,localhost:2182 #zookeeper叢集地址 #sessionTimeout: 100000 configuration: default: #namespace: xxxxx # alarm threshold applicationApdexThreshold: 2000 #應用效能指數閥值,Apdex含義請參考如下 serviceErrorRateThreshold: 10.00 #服務錯誤率閥值 serviceAverageResponseTimeThreshold: 2000 #服務平均響應時間閥值 instanceErrorRateThreshold: 10.00 #例項錯誤率閥值 instanceAverageResponseTimeThreshold: 2000 #例項平均響應時間閥值 applicationErrorRateThreshold: 10.00 #應用錯誤率閥值 applicationAverageResponseTimeThreshold: 2000 #應用平均響應時間閥值 # thermodynamic thermodynamicResponseTimeStep: 50 #熱力圖響應時間 thermodynamicCountOfResponseTimeSteps: 40 #熱力圖的響應時間步長數量 # max collection's size of worker cache collection, setting it smaller when collector OutOfMemory crashed. workerCacheMaxSize: 10000 #最大工作快取數量 # Apdex # 效能指數: # Apdex(Application Performance Index)是一個國際通用標準, # Apdex 是使用者對應用效能滿意度的量化值。它提供了一個統一的測量和報告使用者體驗的方法, # 把終端使用者的體驗和應用效能作為一個完整的指標進行統一度量。 # 如何計算 Apdex:基於“響應性”,Apdex 定義了 3 個使用者滿意度區間( OneAPM 預設定義的 T 值為 0.5 秒): # 滿意:這樣的響應時間讓使用者感到很愉快,響應時間少於 T 秒鐘。 # 容忍:慢了一點,但還可以接受,繼續這一應用過程,響應時間 T~4T 秒。 # 失望:太慢了,受不了了,使用者決定放棄這個應用,響應時間超過 4T 秒。 storage: elasticsearch: clusterName: elasticsearch#Elasticsearch叢集名稱,預設為elasticsearch clusterTransportSniffer: false clusterNodes: localhost:9300 #Elasticsearch連線,預設localhost:9300 indexShardsNumber: 2 indexReplicasNumber: 0 highPerformanceMode: true # Batch process setting, refer to https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.5/java-docs-bulk-processor.html bulkActions: 2000 # Execute the bulk every 2000 requests bulkSize: 20 # flush the bulk every 20mb flushInterval: 10 # flush the bulk every 10 seconds whatever the number of requests concurrentRequests: 2 # the number of concurrent requests # Set a timeout on metric data. After the timeout has expired, the metric data will automatically be deleted. traceDataTTL: 90 #追蹤資料滾動刪除週期,預設90分鐘 minuteMetricDataTTL: 90 #分鐘監控資料滾動刪除週期,預設90分鐘 hourMetricDataTTL: 36 #小時監控資料滾動刪除週期,預設36小時 dayMetricDataTTL: 45 #天監控資料滾動刪除週期,預設45天 monthMetricDataTTL: 18 #月監控資料滾動刪除週期,預設18個月
02 - 通過 Skywalking-6.x 版本的原始碼構建並執行
編譯參考:
https://github.com/apache/incubator-skywalking/blob/master/docs/en/guides/How-to-build.md
Elasticsearch配置
-
docker run -p 9200:9200 -p 9300:9300 -e cluster.name=elasticsearch -d wutang/elasticsearch-shanghai-zone:6.3.2
注意:Skywalking 6.0.0使用埠: 9200