SlideShare a Scribd company logo
1
什麼是監控?
(What is Monitoring?)
2
rick_kyhwang@hotmail.com
https://rickhw.github.io
2017/12/21
前言
中文的語言特性關係,常常會出現『偏義詞』,也就是兩個全然不同意義的字放在一起
,只表達其中之一。這樣組合成『詞』的目的,理由很浪漫、文青:為了方便,可以襯托
出文字的美感。
但是身為專業軟體工程師,語意是不能含糊或者偏義的,就像程式邏輯要單一職責,
有清楚的架構邏輯。所以用詞我都會把它拆解,且轉化成更加務實的英文重新解釋。
這種偏義副詞本意上雖然是偏向某一個字,但實際上代表的是先、後的關係,邏輯上
是兩者都要有的。
3
常見的偏義副詞
● 窗戶 偏『窗』義
● 恩仇 偏『仇』義
● 生死 偏『死』義
● 風雨 偏『雨』義
● 愛恨 偏『恨』義
● 出沒 偏『沒』義
● 監控 偏『控』義
● 維運 偏『維』義
4
5
6
本文重新整理
『淺談系統監控與 AWS CloudWatch 的應用』
的核心概念與想法
監
7
監 控
8
監 控
9
監 控
Watch
Monitor
Observe
Measure
10
監 控
Watch
Monitor
Observe
Measure
Control
Command
Handle
Manage
11
監 控
Watch
Monitor
Observe
Measure
Control
Command
Handle
Manage
12
Dashboard
(儀表板)
監 控
Watch
Monitor
Observe
Measure
Control
Command
Handle
Manage
13
Dashboard
(儀表板)
Console
(主控台)
14
15
Target Services /
Systems
16
Target Services /
Systems
Watchers
17
Target Services /
Systems
Watchers Controllers
Dashboard => Show Something
● Health Status
● Sum of Biz TX
● Sys Resources
● …
18
Target Services /
Systems
Watchers Controllers
Push or Pull Data
(Observability, Measure)
Dashboard => Show Something
● Health Status
● Sum of Biz TX
● Sys Resources
● …
Push or Pull Data
(Observability, Measure)
19
Target Services /
Systems
Watchers Controllers
Events
(Conditions / Thresholds)
Console => Do Something
● Reset or Clean Cache
● On / Off Functions
● Notification
● ...
Commands
Dashboard => Show Something
● Health Status
● Sum of Biz TX
● Sys Resources
● …
20
Target Services /
Systems
Watchers Controllers
Events
(Conditions / Thresholds)
Console => Do Something
● Reset or Clean Cache
● On / Off Functions
● Notification
● ...
Push or Pull Data
(Observability, Measure)
Commands
Dashboard => Show Something
● Health Status
● Sum of Biz TX
● Sys Resources
● …
21
Target Services /
Systems
Watchers Controllers
Events
(Conditions / Thresholds)
Console => Do Something
● Reset or Clean Cache
● On / Off Functions
● Notification
● ...
Feedback
(Adjust Conditions / Thresholds by ML)
Push or Pull Data
(Observability, Measure)
Commands
Dashboard => Show Something
● Health Status
● Sum of Biz TX
● Sys Resources
● …
22
Target Services /
Systems
Watchers Controllers
Events
(Conditions / Thresholds)
Console => Do Something
● Reset or Clean Cache
● On / Off Functions
● Notification
● ...
Feedback
(Adjust Conditions / Thresholds by ML)
Push or Pull Data
(Observability, Measure)
監
Commands
Dashboard => Show Something
● Health Status
● Sum of Biz TX
● Sys Resources
● …
23
Target Services /
Systems
Watchers Controllers
Events
(Conditions / Thresholds)
Console => Do Something
● Reset or Clean Cache
● On / Off Functions
● Notification
● ...
Feedback
(Adjust Conditions / Thresholds by ML)
Push or Pull Data
(Observability, Measure)
監 控
24
Observability vs Monitoring
● 氣象局
○ Observability 觀測
○ Measurement 量測
● 政府
○ Monitoring
○ Alert
○ Action
○ Feedback
25
Dashboard
儀表板 - 呈現
26
Dashboard - 儀表板
27
● 把觀測 (Observe) 、量測 (Measure) 的訊息透過圖像化呈現出來
● 儀表板上的資料應該要來自於 Log
● 觀測 、量測本身是 Sampling (取樣) 概念,密集度越高越好
○ 取樣 (Sapmling):數位概念,用音樂 CD 音質來說,為 44.1k/s,每秒有 44.1k 個取樣
○ 一般來說系統的量測頻率可以有 0.5 per second 算是很高的了
○ Sampling 是有額外資源需求的,就像是加解密一樣,都會額外吃 Computing
● 量測的目的是:呈現系統狀況,用以做分析,進而做決策 (自動化)
Dashboard (儀表板)
28
Dashboard (儀表板)
29
VSTS
Dashboard (儀表板)
30
StarTrek (星艦企業號)
Questions
31
● 如何量測 (Measure)?用什麼方法?多久一次?
● 如何觀測 (Observe)?
● 資料怎麼來的?如何確立正確性?
● 量測指標 (Metric) 背後代表的意義是什麼?
● 量測的數據如何有公信力?
● 你相信氣象數據?那些數據怎麼來的?
32
Console
主控台 - 控制
33
Console - 主控台
34
● 設定參數 / 改變輸入值的地方
● 輸入值要根據某種條件 (Condition) 做變化
○ 這個變化過程就是 Controller
○ Controller 可以透過 Human / AI
● 輸入方式跟待輸入變數的類型有關,像是整數、字串、選擇、真假 …
○ UI 的設計也會不一樣: button, select, choice, checkbox ...
Console (主控台)
35
演唱會 Mixer
Console (主控台)
36
音樂製作
Cubase - Mixer
Console (主控台)
37
飛機
https://www.quora.com/Is-the-console-in-front-of-the-co-pilot-a-duplicat
e-of-the-console-in-front-of-the-pilot-in-a-passenger-aircraft
38
圖片來源:BASIC HUMAN BEHAVIORAL PRINCIPLES
39
本質: 回授系統
40
本質: 自動化
完整請參閱:What is Automation?
41
● Monitoring vs Observability
● 淺談系統監控與 CloudWatch 的應用
● Study Notes - CloudWatch
● Study Notes - SRE Opening and Chapter 1
● What is Automation?
○ 『自動化 XXX』的陷阱
● AWS Certified SysOps Administrator - Associate 準備心得
○ 什麼是維運?
42
Blog 相關文章
43

More Related Content

More from Rick Hwang

AWS Career Exploration Day
AWS Career Exploration DayAWS Career Exploration Day
AWS Career Exploration Day
Rick Hwang
 
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
Rick Hwang
 
SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路
SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路
SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路
Rick Hwang
 
導讀持續交付 2.0 - CH02 價值探索環
導讀持續交付 2.0 - CH02 價值探索環 導讀持續交付 2.0 - CH02 價值探索環
導讀持續交付 2.0 - CH02 價值探索環
Rick Hwang
 
2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構
2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構
2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構
Rick Hwang
 
災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)
災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)
災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)
Rick Hwang
 
Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214
Rick Hwang
 
第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路
Rick Hwang
 
Wiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected MindWiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected Mind
Rick Hwang
 
導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合
Rick Hwang
 
Study Notes - Event-Driven Data Management for Microservices
Study Notes - Event-Driven Data Management for MicroservicesStudy Notes - Event-Driven Data Management for Microservices
Study Notes - Event-Driven Data Management for Microservices
Rick Hwang
 
Study Notes - Using an API Gateway
Study Notes - Using an API GatewayStudy Notes - Using an API Gateway
Study Notes - Using an API Gateway
Rick Hwang
 
從緊急事件 談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
從緊急事件  談 SRE 應變能力的培養 - DevOpsDays Taipei 2018從緊急事件  談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
從緊急事件 談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
Rick Hwang
 
AWS Well-Architected Framework (nov 2017)
AWS Well-Architected Framework (nov 2017)AWS Well-Architected Framework (nov 2017)
AWS Well-Architected Framework (nov 2017)
Rick Hwang
 
91APP API Gateway 導入之旅
91APP API Gateway 導入之旅91APP API Gateway 導入之旅
91APP API Gateway 導入之旅
Rick Hwang
 
Continuous Delivery - Opening
Continuous Delivery - OpeningContinuous Delivery - Opening
Continuous Delivery - Opening
Rick Hwang
 
Monitoring Tools 大亂鬥 - AWS CloudWatch
Monitoring Tools 大亂鬥 - AWS CloudWatchMonitoring Tools 大亂鬥 - AWS CloudWatch
Monitoring Tools 大亂鬥 - AWS CloudWatch
Rick Hwang
 
Amazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and MonitoringAmazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and Monitoring
Rick Hwang
 
Ops as Code using Serverless
Ops as Code using Serverless Ops as Code using Serverless
Ops as Code using Serverless
Rick Hwang
 
SRE CH25 - Data Processing Pipelines
SRE CH25 - Data Processing PipelinesSRE CH25 - Data Processing Pipelines
SRE CH25 - Data Processing Pipelines
Rick Hwang
 

More from Rick Hwang (20)

AWS Career Exploration Day
AWS Career Exploration DayAWS Career Exploration Day
AWS Career Exploration Day
 
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
從理想、到現實的距離,開啟品味軟體測試之路 - 台灣軟體工程協會 (20220813)
 
SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路
SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路
SRE Conf 2022 - 91APP 在 AWS 上的 SRE 實踐之路
 
導讀持續交付 2.0 - CH02 價值探索環
導讀持續交付 2.0 - CH02 價值探索環 導讀持續交付 2.0 - CH02 價值探索環
導讀持續交付 2.0 - CH02 價值探索環
 
2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構
2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構
2020 AWS Summit - 如何有效管理 AWS 的成本結構與系統架構
 
災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)
災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)
災難演練 @ AWS 實戰分享 (Using AWS for Disaster Recovery)
 
Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214
 
第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路
 
Wiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected MindWiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected Mind
 
導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合
 
Study Notes - Event-Driven Data Management for Microservices
Study Notes - Event-Driven Data Management for MicroservicesStudy Notes - Event-Driven Data Management for Microservices
Study Notes - Event-Driven Data Management for Microservices
 
Study Notes - Using an API Gateway
Study Notes - Using an API GatewayStudy Notes - Using an API Gateway
Study Notes - Using an API Gateway
 
從緊急事件 談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
從緊急事件  談 SRE 應變能力的培養 - DevOpsDays Taipei 2018從緊急事件  談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
從緊急事件 談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
 
AWS Well-Architected Framework (nov 2017)
AWS Well-Architected Framework (nov 2017)AWS Well-Architected Framework (nov 2017)
AWS Well-Architected Framework (nov 2017)
 
91APP API Gateway 導入之旅
91APP API Gateway 導入之旅91APP API Gateway 導入之旅
91APP API Gateway 導入之旅
 
Continuous Delivery - Opening
Continuous Delivery - OpeningContinuous Delivery - Opening
Continuous Delivery - Opening
 
Monitoring Tools 大亂鬥 - AWS CloudWatch
Monitoring Tools 大亂鬥 - AWS CloudWatchMonitoring Tools 大亂鬥 - AWS CloudWatch
Monitoring Tools 大亂鬥 - AWS CloudWatch
 
Amazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and MonitoringAmazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and Monitoring
 
Ops as Code using Serverless
Ops as Code using Serverless Ops as Code using Serverless
Ops as Code using Serverless
 
SRE CH25 - Data Processing Pipelines
SRE CH25 - Data Processing PipelinesSRE CH25 - Data Processing Pipelines
SRE CH25 - Data Processing Pipelines
 

什麼是『監控』? (What is monitoring )