SlideShare une entreprise Scribd logo
1  sur  29
Télécharger pour lire hors ligne
2018/05/26 @ DevOps Taiwan
Monitoring Tools
之
AWS CloudWatch
Rick Hwang @ 91APP
2018/05/26
2
2018/05/26 @ DevOps Taiwan
打雜@91APP
缺好手,歡迎來聊!
缺:Dev + SRE + IT
Cloud / AWS / GCP
DevOps / SRE
Distributed Systems
經營管理
Rick Hwang
https://www.gtcafe.com
3
音樂 吉他 鍵盤 編曲
哲學 科幻 金庸
拉低賽 練肖話
都做過惹
FB - SRE Taiwan 義工
2018/05/26 @ DevOps Taiwan
5
Monitoring Tools 大亂鬥。。。
談武、論俠
來聽的朋友,想獲得什麼?
2018/05/26 @ DevOps Taiwan
6
人們不會買你買什麼
他們買你的為什麼
TED: 偉大的領導者如何激勵行為 Simon Sinek
2018/05/26 @ DevOps Taiwan
Consideration for Monitoring Tools
● Feedback and Actions
● Observability and Monitoring
● Who Needs the Metrics?
● Latency: Realtime or Batch
● Cost Efficiency
7
目標策略
● Software Engineering
● Services, NOT Servers
● Event-driven
● Programmable
● Configurable
執行策略
2018/05/26 @ DevOps Taiwan
動作
Pipeline
8
蒐集 儲存 分析
Data Pipeline
Observability
觀測:量測、度量
Monitoring
控管、控制
氣象局 政府
2018/05/26 @ DevOps Taiwan
9
Business
(EC, IoT, Backing)
Login / Logon
Shopping Car
User Sessions
Device Sessions
Invention / Stock
eDM / SMS
Push
Shipping QTY
GA
GMV
ROI
Tracking
Application
Servers /
Services
Tomcat / IIS
Nginx / HAProxy
RDBMS / NoSQL
JVM Heap Size
Node.js
Task Queue
SQS / Kafaka
Cache / CDN
HTTP Requests
HTTP 4XXs / 5XXs
LB Latency
System /
Virtual
Machine
CPU Utilizations
Disk I/O
Disk IOPS / Throughput
Network I/O
Memory Utilizations
Disk Usage
CPU Credit
System Check
Instance Check
Network
Infrastructure
Security
Traffic Flow
Network ACL
Firewall
AD/DC
LDAP
IAM
AAA
DNS
SSL
誰・看・哪些指標?
Boss
Managers
Developers
Administrators
Network
Security
2018/05/26 @ DevOps Taiwan
10
Business
(EC, IoT, Backing)
Login / Logon
Shopping Car
User Sessions
Device Sessions
Invention / Stock
eDM / SMS
Push
Shipping QTY
GA
GMV
ROI
Tracking
Application
Servers /
Services
Tomcat / IIS
Nginx / HAProxy
RDBMS / NoSQL
JVM Heap Size
Node.js
Task Queue
SQS / Kafaka
Cache / CDN
HTTP Requests
HTTP 4XXs / 5XXs
LB Latency
System /
Virtual
Machine
CPU Utilizations
Disk I/O
Disk IOPS / Throughput
Network I/O
Memory Utilizations
Disk Usage
CPU Credit
System Check
Instance Check
Network
Infrastructure
Security
Traffic Flow
Network ACL
Firewall
AD/DC
LDAP
IAM
AAA
DNS
SSL
誰・看・哪些指標?
Boss
Managers
Developers
Administrators
Network
Security
全公司看的指標,盡可能標準化!
On-Call 要看的指標,盡可能結構化!
值班人員看的系統資源,盡可能自動化!
資安、Infra 要注意,GDPR / APT 很恐怖!
11
Source: Microservice Prerequisites
Basic Monitoring
2018/05/26 @ DevOps Taiwan
Why AWS CloudWatch
● Serverless Monitoring System
● Event-driven → Lambda
● Managed Storage
● Programmable and Automation
● Realtime and Backup
● CloudWatch 滿足 “Basic Montioring” 的需求
● 不用 Monitoring Monitoring System
13
14
EC2 Instances
Log Shipper
Logs
Log Groups
Log Stream A
Log Stream B
Log Stream C
Log Stream N
Alarms
Filters
[ts, hostname, scope=NGX, tcp_all, tcp_time_wait, tcp_established, ...]
/var/log/app/*.log
2017-06-11T08:45:01 app1 NGX 47 0 47 0 0 0
2017-06-11T08:45:01 app2 NGX 52 0 52 0 0 0
2017-06-11T08:46:01 app1 NGX 53 0 52 0 0 0
2017-06-11T08:46:01 app2 NGX 52 0 51 0 0 0
2017-06-11T08:47:01 app1 NGX 53 0 53 0 0 0
2017-06-11T08:47:01 app2 NGX 53 0 53 0 0 0
2017-06-11T08:48:01 app1 NGX 59 0 59 0 0 0
2017-06-11T08:48:01 app2 NGX 52 0 51 0 0 0
2017-06-11T08:49:01 app1 NGX 48 0 48 0 0 0
Dashboard
Metrics
S3
Amazon ESLambda
SNS Topics
Export
Streaming
Push
Lambda
2018/05/26 @ DevOps Taiwan
15
CloudWatch 滿足 “Basic Montioring” 的需求
不足的怎麼辦?
很少有一個技術可以滿足所有情境
2018/05/26 @ DevOps Taiwan
● 分析:ELK
○ 架構:複雜、高大上
○ 頻率:即時
○ 成本:很貴 (不要問,很恐怖!)
○ 用途:Aggregation、花花綠綠的圖
● Log 備份:Kinesis Firehose + S3 + Glacier
○ 架構:分片處理、效能、ETL
○ 頻率:每分、每刻、每時、每天
○ 成本:涓涓流水 (還是有)
○ 用途:Auditing, Compliance
● Athena: BigQuery on AWS
○ 架構:用就是了
○ 用途:報表、分析
○ 頻率:每週、每月、每季、每年
○ 成本:很低
配套方案 (場景)
16
Partial Realtime (個案)
On-Demond (通案)
Hourly, Daily (通案)
Kinesis
Athena
ELK
2018/05/26 @ DevOps Taiwan
動作
Pipeline
17
蒐集 儲存 分析
S3CW Logs
Kinesis
Elasticsearch
CW Logs Athena
Lambda Grafana
Kibana Dashboard
CW Agent
Elasticsearch
Observability
觀測:量測、度量
Monitoring
控管、控制
2018/05/26 @ DevOps Taiwan
19
2018/05/26 @ DevOps Taiwan
https://disp.cc/b/115-aCbv20要得很模糊
要得很霸道 要得很曖昧
2018/05/26 @ DevOps Taiwan
21
指標?誰?做什麼?
Boss
Managers
Developers
Administrators
Network
Security
全公司看的指標,盡可能標準化!
On-Call 要看的指標,盡可能結構化!
值班人員看的系統資源,盡可能自動化!
資安、Infra 要注意,GDPR / APT 很恐怖!
2018/05/26 @ DevOps Taiwan
為什麼不選其它監控工具?
● 不想自己蓋機器、養機器
● 監控系統做得再好,都只是成本
● 監控系統不是搞 Big Data、搞 AI
● 不想養 Storage Service
22
相關分享: Ops as Code using Serverless
2018/05/26 @ DevOps Taiwan
● 成本
○ 金錢、管理
○ 技術、溝通
● 技術
○ 架構、效能、儲存
○ 安全、可程式化
請想想這些問題
23
2018/05/26 @ DevOps Taiwan
● 活用 SaaS,像是 AWS CloudWatch、GCP
Stackdriver
● 考慮部署:設定成 Configurable、跨區部署
● Log 結構化格式 (csv or json):才可以查
詢、自動化
● 設計 Health Check
(Best?) Practice
24
● 利用 Big Data Solution 處理 Log
Query 需求,像是 AWS Athena or
GCP BigQuery
● Log 透過 Shipper (awslogs, statsd,
collectd, fluentd, telegraf ... ) 同時傳到
○ S3 備份,以符合稽核需求
● 巨量 Log Streaming 資料需要有
Queue 協助
○ AWS Kinesis Firehose
○ GCP Pub/Sub
2018/05/26 @ DevOps Taiwan
● Feedback and Actions
● Observability and Monitoring
● Who Needs the Metrics?
● Latency: Realtime or Batch
● Cost Efficiency
Consideration for Monitoring Tools
26
目標策略
● Software Engineering
● Services, NOT Servers
● Event-driven
● Programmable
● Configurable
執行策略
2018/05/26 @ DevOps Taiwan
27
人們不會買你買什麼,他們買你的為什麼
希望大家思考『為什麼』
思考如何選擇『工具』
2018/05/26 @ DevOps Taiwan
延伸閱讀
● 淺談系統監控與 CloudWatch 的應用
● 什麼是『監控』? (What is monitoring )
● Monitoring vs Observability
● Ops as Code using Serverless
● TED: 偉大的領導者如何激勵行為 - by Simon Sinek
28
2018/05/26 @ DevOps Taiwan
29

Contenu connexe

Tendances

SRE Study Notes - CH2,3,4
SRE Study Notes - CH2,3,4SRE Study Notes - CH2,3,4
SRE Study Notes - CH2,3,4Rick Hwang
 
導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合Rick Hwang
 
SRE Study Notes - Opening, CH1
SRE Study Notes - Opening, CH1SRE Study Notes - Opening, CH1
SRE Study Notes - Opening, CH1Rick Hwang
 
Cncf k8s Ingress Example-02
Cncf k8s Ingress Example-02Cncf k8s Ingress Example-02
Cncf k8s Ingress Example-02Erhwen Kuo
 
Datacon 2019-ksql-kubernetes-prometheus
Datacon 2019-ksql-kubernetes-prometheusDatacon 2019-ksql-kubernetes-prometheus
Datacon 2019-ksql-kubernetes-prometheusErhwen Kuo
 
Realtime analytics with Flink and Druid
Realtime analytics with Flink and DruidRealtime analytics with Flink and Druid
Realtime analytics with Flink and DruidErhwen Kuo
 
Elastic Stack 最新动态
Elastic Stack 最新动态Elastic Stack 最新动态
Elastic Stack 最新动态Elasticsearch
 
Cncf k8s Ingress Example-01
Cncf k8s Ingress Example-01Cncf k8s Ingress Example-01
Cncf k8s Ingress Example-01Erhwen Kuo
 
2019 Cloud Native Forum, Taipei
2019 Cloud Native Forum, Taipei2019 Cloud Native Forum, Taipei
2019 Cloud Native Forum, TaipeiYiDeWu1
 
Wiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected MindWiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected MindRick Hwang
 
瓶頸處理九大原則 (精簡版)
瓶頸處理九大原則 (精簡版)瓶頸處理九大原則 (精簡版)
瓶頸處理九大原則 (精簡版)William Yeh
 
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務Alan Tsai
 
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2Alan Tsai
 
2021 ee大会-旷视ai产品背后的研发效能工具建设
2021 ee大会-旷视ai产品背后的研发效能工具建设2021 ee大会-旷视ai产品背后的研发效能工具建设
2021 ee大会-旷视ai产品背后的研发效能工具建设Tianwei Liu
 
03 azure devops pipeline - release
03 azure devops pipeline - release03 azure devops pipeline - release
03 azure devops pipeline - releaseAlan Tsai
 
GitOps 中的可觀測性
GitOps 中的可觀測性GitOps 中的可觀測性
GitOps 中的可觀測性YiDeWu1
 
Partner Session - Alibaba
Partner Session - Alibaba Partner Session - Alibaba
Partner Session - Alibaba Elasticsearch
 
Confluent流处理平台之Kafka新技术分享
Confluent流处理平台之Kafka新技术分享Confluent流处理平台之Kafka新技术分享
Confluent流处理平台之Kafka新技术分享confluent
 
Full Stack Monitoring with Prometheus and Grafana (Updated)
Full Stack Monitoring with Prometheus and Grafana (Updated)Full Stack Monitoring with Prometheus and Grafana (Updated)
Full Stack Monitoring with Prometheus and Grafana (Updated)Jazz Yao-Tsung Wang
 
京东实时消息队列JDQ技术实践与探索
京东实时消息队列JDQ技术实践与探索京东实时消息队列JDQ技术实践与探索
京东实时消息队列JDQ技术实践与探索confluent
 

Tendances (20)

SRE Study Notes - CH2,3,4
SRE Study Notes - CH2,3,4SRE Study Notes - CH2,3,4
SRE Study Notes - CH2,3,4
 
導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合導讀持續交付 2.0 - 談當代軟體交付之虛實融合
導讀持續交付 2.0 - 談當代軟體交付之虛實融合
 
SRE Study Notes - Opening, CH1
SRE Study Notes - Opening, CH1SRE Study Notes - Opening, CH1
SRE Study Notes - Opening, CH1
 
Cncf k8s Ingress Example-02
Cncf k8s Ingress Example-02Cncf k8s Ingress Example-02
Cncf k8s Ingress Example-02
 
Datacon 2019-ksql-kubernetes-prometheus
Datacon 2019-ksql-kubernetes-prometheusDatacon 2019-ksql-kubernetes-prometheus
Datacon 2019-ksql-kubernetes-prometheus
 
Realtime analytics with Flink and Druid
Realtime analytics with Flink and DruidRealtime analytics with Flink and Druid
Realtime analytics with Flink and Druid
 
Elastic Stack 最新动态
Elastic Stack 最新动态Elastic Stack 最新动态
Elastic Stack 最新动态
 
Cncf k8s Ingress Example-01
Cncf k8s Ingress Example-01Cncf k8s Ingress Example-01
Cncf k8s Ingress Example-01
 
2019 Cloud Native Forum, Taipei
2019 Cloud Native Forum, Taipei2019 Cloud Native Forum, Taipei
2019 Cloud Native Forum, Taipei
 
Wiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected MindWiki in Teamroom - Connected Mind
Wiki in Teamroom - Connected Mind
 
瓶頸處理九大原則 (精簡版)
瓶頸處理九大原則 (精簡版)瓶頸處理九大原則 (精簡版)
瓶頸處理九大原則 (精簡版)
 
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務
20200425 GlobalAzure-Azure API Management-協助邁向Open API及Micro Service架構的好用服務
 
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2
Visual Studio 開發密技大補帖 | Study4.TW 2021 小聚#2
 
2021 ee大会-旷视ai产品背后的研发效能工具建设
2021 ee大会-旷视ai产品背后的研发效能工具建设2021 ee大会-旷视ai产品背后的研发效能工具建设
2021 ee大会-旷视ai产品背后的研发效能工具建设
 
03 azure devops pipeline - release
03 azure devops pipeline - release03 azure devops pipeline - release
03 azure devops pipeline - release
 
GitOps 中的可觀測性
GitOps 中的可觀測性GitOps 中的可觀測性
GitOps 中的可觀測性
 
Partner Session - Alibaba
Partner Session - Alibaba Partner Session - Alibaba
Partner Session - Alibaba
 
Confluent流处理平台之Kafka新技术分享
Confluent流处理平台之Kafka新技术分享Confluent流处理平台之Kafka新技术分享
Confluent流处理平台之Kafka新技术分享
 
Full Stack Monitoring with Prometheus and Grafana (Updated)
Full Stack Monitoring with Prometheus and Grafana (Updated)Full Stack Monitoring with Prometheus and Grafana (Updated)
Full Stack Monitoring with Prometheus and Grafana (Updated)
 
京东实时消息队列JDQ技术实践与探索
京东实时消息队列JDQ技术实践与探索京东实时消息队列JDQ技术实践与探索
京东实时消息队列JDQ技术实践与探索
 

Similaire à Monitoring Tools 大亂鬥 - AWS CloudWatch

01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overviewAlan Tsai
 
Azure Taiwan - Keep azure cost down (Azure 成本管控)
Azure Taiwan - Keep azure cost down (Azure 成本管控)Azure Taiwan - Keep azure cost down (Azure 成本管控)
Azure Taiwan - Keep azure cost down (Azure 成本管控)Alan Tsai
 
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想Alan Tsai
 
Introduction to K8S Big Data SIG
Introduction to K8S Big Data SIGIntroduction to K8S Big Data SIG
Introduction to K8S Big Data SIGJazz Yao-Tsung Wang
 
淺談 Kubernetes於大數據生態系的相關開發近況
淺談 Kubernetes於大數據生態系的相關開發近況淺談 Kubernetes於大數據生態系的相關開發近況
淺談 Kubernetes於大數據生態系的相關開發近況inwin stack
 
Azure IoT Total solution
Azure IoT Total solutionAzure IoT Total solution
Azure IoT Total solutionWei-Ting SHIH
 
02 azure devops pipeline - build
02 azure devops pipeline - build02 azure devops pipeline - build
02 azure devops pipeline - buildAlan Tsai
 
Data Analyse Black Horse - ClickHouse
Data Analyse Black Horse - ClickHouseData Analyse Black Horse - ClickHouse
Data Analyse Black Horse - ClickHouseJack Gao
 
Streaming architecture zx_dec2015
Streaming architecture zx_dec2015Streaming architecture zx_dec2015
Streaming architecture zx_dec2015Zhenzhong Xu
 
初探 Elastic Observability 的實踐方法
初探 Elastic Observability 的實踐方法初探 Elastic Observability 的實踐方法
初探 Elastic Observability 的實踐方法Joe Wu
 
Apache Kylin Data Summit 2019: Kyligence Presentation
Apache Kylin Data Summit 2019: Kyligence PresentationApache Kylin Data Summit 2019: Kyligence Presentation
Apache Kylin Data Summit 2019: Kyligence PresentationTyler Wishnoff
 
2023 08 - SRE 實踐與開發平台指南 - 書友見面會
2023 08 - SRE 實踐與開發平台指南 - 書友見面會2023 08 - SRE 實踐與開發平台指南 - 書友見面會
2023 08 - SRE 實踐與開發平台指南 - 書友見面會Rick Hwang
 
How to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceHow to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceAlex Su
 
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 TaiwanAlan Tsai
 
Coscup 2018
Coscup 2018Coscup 2018
Coscup 2018Yi Tseng
 
瀏覽器開發與開源經驗 COSCUP 2018
瀏覽器開發與開源經驗 COSCUP 2018瀏覽器開發與開源經驗 COSCUP 2018
瀏覽器開發與開源經驗 COSCUP 2018安齊 劉
 

Similaire à Monitoring Tools 大亂鬥 - AWS CloudWatch (20)

01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview01 DevOps and Azure DevOps overview
01 DevOps and Azure DevOps overview
 
Data Pipeline Matters
Data Pipeline MattersData Pipeline Matters
Data Pipeline Matters
 
Azure Taiwan - Keep azure cost down (Azure 成本管控)
Azure Taiwan - Keep azure cost down (Azure 成本管控)Azure Taiwan - Keep azure cost down (Azure 成本管控)
Azure Taiwan - Keep azure cost down (Azure 成本管控)
 
災難演練@AWS 實戰分享
災難演練@AWS 實戰分享 災難演練@AWS 實戰分享
災難演練@AWS 實戰分享
 
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想
初探 Data API Builder:在幾分鐘內將資料庫轉換成 REST 和 GraphQL 不再是夢想
 
Introduction to K8S Big Data SIG
Introduction to K8S Big Data SIGIntroduction to K8S Big Data SIG
Introduction to K8S Big Data SIG
 
淺談 Kubernetes於大數據生態系的相關開發近況
淺談 Kubernetes於大數據生態系的相關開發近況淺談 Kubernetes於大數據生態系的相關開發近況
淺談 Kubernetes於大數據生態系的相關開發近況
 
Azure IoT Total solution
Azure IoT Total solutionAzure IoT Total solution
Azure IoT Total solution
 
02 azure devops pipeline - build
02 azure devops pipeline - build02 azure devops pipeline - build
02 azure devops pipeline - build
 
Data Analyse Black Horse - ClickHouse
Data Analyse Black Horse - ClickHouseData Analyse Black Horse - ClickHouse
Data Analyse Black Horse - ClickHouse
 
Streaming architecture zx_dec2015
Streaming architecture zx_dec2015Streaming architecture zx_dec2015
Streaming architecture zx_dec2015
 
初探 Elastic Observability 的實踐方法
初探 Elastic Observability 的實踐方法初探 Elastic Observability 的實踐方法
初探 Elastic Observability 的實踐方法
 
Apache Kylin Data Summit 2019: Kyligence Presentation
Apache Kylin Data Summit 2019: Kyligence PresentationApache Kylin Data Summit 2019: Kyligence Presentation
Apache Kylin Data Summit 2019: Kyligence Presentation
 
2023 08 - SRE 實踐與開發平台指南 - 書友見面會
2023 08 - SRE 實踐與開發平台指南 - 書友見面會2023 08 - SRE 實踐與開發平台指南 - 書友見面會
2023 08 - SRE 實踐與開發平台指南 - 書友見面會
 
My DevOps Tour 0.1
My DevOps Tour 0.1My DevOps Tour 0.1
My DevOps Tour 0.1
 
AI/ML O-RAN Cloud-Native Automation
AI/ML O-RAN Cloud-Native AutomationAI/ML O-RAN Cloud-Native Automation
AI/ML O-RAN Cloud-Native Automation
 
How to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B serviceHow to integrate GitLab CICD into B2B service
How to integrate GitLab CICD into B2B service
 
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan
從 GitHub Copilot 到 Enterprise Copilot:打造符合企業需求的智能開發助手之路 | .NET Conf 2023 Taiwan
 
Coscup 2018
Coscup 2018Coscup 2018
Coscup 2018
 
瀏覽器開發與開源經驗 COSCUP 2018
瀏覽器開發與開源經驗 COSCUP 2018瀏覽器開發與開源經驗 COSCUP 2018
瀏覽器開發與開源經驗 COSCUP 2018
 

Plus de Rick Hwang

在生命轉彎的地方 - 從軟體開發職涯,探索人生
在生命轉彎的地方 - 從軟體開發職涯,探索人生在生命轉彎的地方 - 從軟體開發職涯,探索人生
在生命轉彎的地方 - 從軟體開發職涯,探索人生Rick Hwang
 
20230829 - 探索職涯,複利人生
20230829 - 探索職涯,複利人生20230829 - 探索職涯,複利人生
20230829 - 探索職涯,複利人生Rick Hwang
 
20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)
20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)
20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)Rick Hwang
 
軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大
軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大
軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大Rick Hwang
 
CH02 API Governance
CH02 API Governance CH02 API Governance
CH02 API Governance Rick Hwang
 
Chapter 8. Partial updates and retrievals.pdf
Chapter 8. Partial updates and retrievals.pdfChapter 8. Partial updates and retrievals.pdf
Chapter 8. Partial updates and retrievals.pdfRick Hwang
 
Ch09 Custom Methods
Ch09 Custom MethodsCh09 Custom Methods
Ch09 Custom MethodsRick Hwang
 
AWS Career Exploration Day
AWS Career Exploration DayAWS Career Exploration Day
AWS Career Exploration DayRick 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
 
Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214Rick Hwang
 
第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路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 MicroservicesRick Hwang
 
Study Notes - Using an API Gateway
Study Notes - Using an API GatewayStudy Notes - Using an API Gateway
Study Notes - Using an API GatewayRick Hwang
 
從緊急事件 談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
從緊急事件  談 SRE 應變能力的培養 - DevOpsDays Taipei 2018從緊急事件  談 SRE 應變能力的培養 - DevOpsDays Taipei 2018
從緊急事件 談 SRE 應變能力的培養 - DevOpsDays Taipei 2018Rick 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 - OpeningRick Hwang
 
Amazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and MonitoringAmazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and MonitoringRick Hwang
 

Plus de Rick Hwang (20)

在生命轉彎的地方 - 從軟體開發職涯,探索人生
在生命轉彎的地方 - 從軟體開發職涯,探索人生在生命轉彎的地方 - 從軟體開發職涯,探索人生
在生命轉彎的地方 - 從軟體開發職涯,探索人生
 
20230829 - 探索職涯,複利人生
20230829 - 探索職涯,複利人生20230829 - 探索職涯,複利人生
20230829 - 探索職涯,複利人生
 
20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)
20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)
20230215 - 凝聚團隊共識的溝通方法 (Effective Team Communication)
 
軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大
軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大
軟體測試實務新書發表會 - 從品質與測試,讓軟體再次偉大
 
CH02 API Governance
CH02 API Governance CH02 API Governance
CH02 API Governance
 
Chapter 8. Partial updates and retrievals.pdf
Chapter 8. Partial updates and retrievals.pdfChapter 8. Partial updates and retrievals.pdf
Chapter 8. Partial updates and retrievals.pdf
 
Ch09 Custom Methods
Ch09 Custom MethodsCh09 Custom Methods
Ch09 Custom Methods
 
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 價值探索環
 
Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214Software Development Process v1.5 - 20121214
Software Development Process v1.5 - 20121214
 
第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路第三章 建立良好的人際關係網路
第三章 建立良好的人際關係網路
 
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
 
Amazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and MonitoringAmazon CloudWatch - Observability and Monitoring
Amazon CloudWatch - Observability and Monitoring
 

Monitoring Tools 大亂鬥 - AWS CloudWatch

  • 1.
  • 2. 2018/05/26 @ DevOps Taiwan Monitoring Tools 之 AWS CloudWatch Rick Hwang @ 91APP 2018/05/26 2
  • 3. 2018/05/26 @ DevOps Taiwan 打雜@91APP 缺好手,歡迎來聊! 缺:Dev + SRE + IT Cloud / AWS / GCP DevOps / SRE Distributed Systems 經營管理 Rick Hwang https://www.gtcafe.com 3 音樂 吉他 鍵盤 編曲 哲學 科幻 金庸 拉低賽 練肖話 都做過惹 FB - SRE Taiwan 義工
  • 4.
  • 5. 2018/05/26 @ DevOps Taiwan 5 Monitoring Tools 大亂鬥。。。 談武、論俠 來聽的朋友,想獲得什麼?
  • 6. 2018/05/26 @ DevOps Taiwan 6 人們不會買你買什麼 他們買你的為什麼 TED: 偉大的領導者如何激勵行為 Simon Sinek
  • 7. 2018/05/26 @ DevOps Taiwan Consideration for Monitoring Tools ● Feedback and Actions ● Observability and Monitoring ● Who Needs the Metrics? ● Latency: Realtime or Batch ● Cost Efficiency 7 目標策略 ● Software Engineering ● Services, NOT Servers ● Event-driven ● Programmable ● Configurable 執行策略
  • 8. 2018/05/26 @ DevOps Taiwan 動作 Pipeline 8 蒐集 儲存 分析 Data Pipeline Observability 觀測:量測、度量 Monitoring 控管、控制 氣象局 政府
  • 9. 2018/05/26 @ DevOps Taiwan 9 Business (EC, IoT, Backing) Login / Logon Shopping Car User Sessions Device Sessions Invention / Stock eDM / SMS Push Shipping QTY GA GMV ROI Tracking Application Servers / Services Tomcat / IIS Nginx / HAProxy RDBMS / NoSQL JVM Heap Size Node.js Task Queue SQS / Kafaka Cache / CDN HTTP Requests HTTP 4XXs / 5XXs LB Latency System / Virtual Machine CPU Utilizations Disk I/O Disk IOPS / Throughput Network I/O Memory Utilizations Disk Usage CPU Credit System Check Instance Check Network Infrastructure Security Traffic Flow Network ACL Firewall AD/DC LDAP IAM AAA DNS SSL 誰・看・哪些指標? Boss Managers Developers Administrators Network Security
  • 10. 2018/05/26 @ DevOps Taiwan 10 Business (EC, IoT, Backing) Login / Logon Shopping Car User Sessions Device Sessions Invention / Stock eDM / SMS Push Shipping QTY GA GMV ROI Tracking Application Servers / Services Tomcat / IIS Nginx / HAProxy RDBMS / NoSQL JVM Heap Size Node.js Task Queue SQS / Kafaka Cache / CDN HTTP Requests HTTP 4XXs / 5XXs LB Latency System / Virtual Machine CPU Utilizations Disk I/O Disk IOPS / Throughput Network I/O Memory Utilizations Disk Usage CPU Credit System Check Instance Check Network Infrastructure Security Traffic Flow Network ACL Firewall AD/DC LDAP IAM AAA DNS SSL 誰・看・哪些指標? Boss Managers Developers Administrators Network Security 全公司看的指標,盡可能標準化! On-Call 要看的指標,盡可能結構化! 值班人員看的系統資源,盡可能自動化! 資安、Infra 要注意,GDPR / APT 很恐怖!
  • 12.
  • 13. 2018/05/26 @ DevOps Taiwan Why AWS CloudWatch ● Serverless Monitoring System ● Event-driven → Lambda ● Managed Storage ● Programmable and Automation ● Realtime and Backup ● CloudWatch 滿足 “Basic Montioring” 的需求 ● 不用 Monitoring Monitoring System 13
  • 14. 14 EC2 Instances Log Shipper Logs Log Groups Log Stream A Log Stream B Log Stream C Log Stream N Alarms Filters [ts, hostname, scope=NGX, tcp_all, tcp_time_wait, tcp_established, ...] /var/log/app/*.log 2017-06-11T08:45:01 app1 NGX 47 0 47 0 0 0 2017-06-11T08:45:01 app2 NGX 52 0 52 0 0 0 2017-06-11T08:46:01 app1 NGX 53 0 52 0 0 0 2017-06-11T08:46:01 app2 NGX 52 0 51 0 0 0 2017-06-11T08:47:01 app1 NGX 53 0 53 0 0 0 2017-06-11T08:47:01 app2 NGX 53 0 53 0 0 0 2017-06-11T08:48:01 app1 NGX 59 0 59 0 0 0 2017-06-11T08:48:01 app2 NGX 52 0 51 0 0 0 2017-06-11T08:49:01 app1 NGX 48 0 48 0 0 0 Dashboard Metrics S3 Amazon ESLambda SNS Topics Export Streaming Push Lambda
  • 15. 2018/05/26 @ DevOps Taiwan 15 CloudWatch 滿足 “Basic Montioring” 的需求 不足的怎麼辦? 很少有一個技術可以滿足所有情境
  • 16. 2018/05/26 @ DevOps Taiwan ● 分析:ELK ○ 架構:複雜、高大上 ○ 頻率:即時 ○ 成本:很貴 (不要問,很恐怖!) ○ 用途:Aggregation、花花綠綠的圖 ● Log 備份:Kinesis Firehose + S3 + Glacier ○ 架構:分片處理、效能、ETL ○ 頻率:每分、每刻、每時、每天 ○ 成本:涓涓流水 (還是有) ○ 用途:Auditing, Compliance ● Athena: BigQuery on AWS ○ 架構:用就是了 ○ 用途:報表、分析 ○ 頻率:每週、每月、每季、每年 ○ 成本:很低 配套方案 (場景) 16 Partial Realtime (個案) On-Demond (通案) Hourly, Daily (通案) Kinesis Athena ELK
  • 17. 2018/05/26 @ DevOps Taiwan 動作 Pipeline 17 蒐集 儲存 分析 S3CW Logs Kinesis Elasticsearch CW Logs Athena Lambda Grafana Kibana Dashboard CW Agent Elasticsearch Observability 觀測:量測、度量 Monitoring 控管、控制
  • 18.
  • 19. 2018/05/26 @ DevOps Taiwan 19
  • 20. 2018/05/26 @ DevOps Taiwan https://disp.cc/b/115-aCbv20要得很模糊 要得很霸道 要得很曖昧
  • 21. 2018/05/26 @ DevOps Taiwan 21 指標?誰?做什麼? Boss Managers Developers Administrators Network Security 全公司看的指標,盡可能標準化! On-Call 要看的指標,盡可能結構化! 值班人員看的系統資源,盡可能自動化! 資安、Infra 要注意,GDPR / APT 很恐怖!
  • 22. 2018/05/26 @ DevOps Taiwan 為什麼不選其它監控工具? ● 不想自己蓋機器、養機器 ● 監控系統做得再好,都只是成本 ● 監控系統不是搞 Big Data、搞 AI ● 不想養 Storage Service 22 相關分享: Ops as Code using Serverless
  • 23. 2018/05/26 @ DevOps Taiwan ● 成本 ○ 金錢、管理 ○ 技術、溝通 ● 技術 ○ 架構、效能、儲存 ○ 安全、可程式化 請想想這些問題 23
  • 24. 2018/05/26 @ DevOps Taiwan ● 活用 SaaS,像是 AWS CloudWatch、GCP Stackdriver ● 考慮部署:設定成 Configurable、跨區部署 ● Log 結構化格式 (csv or json):才可以查 詢、自動化 ● 設計 Health Check (Best?) Practice 24 ● 利用 Big Data Solution 處理 Log Query 需求,像是 AWS Athena or GCP BigQuery ● Log 透過 Shipper (awslogs, statsd, collectd, fluentd, telegraf ... ) 同時傳到 ○ S3 備份,以符合稽核需求 ● 巨量 Log Streaming 資料需要有 Queue 協助 ○ AWS Kinesis Firehose ○ GCP Pub/Sub
  • 25.
  • 26. 2018/05/26 @ DevOps Taiwan ● Feedback and Actions ● Observability and Monitoring ● Who Needs the Metrics? ● Latency: Realtime or Batch ● Cost Efficiency Consideration for Monitoring Tools 26 目標策略 ● Software Engineering ● Services, NOT Servers ● Event-driven ● Programmable ● Configurable 執行策略
  • 27. 2018/05/26 @ DevOps Taiwan 27 人們不會買你買什麼,他們買你的為什麼 希望大家思考『為什麼』 思考如何選擇『工具』
  • 28. 2018/05/26 @ DevOps Taiwan 延伸閱讀 ● 淺談系統監控與 CloudWatch 的應用 ● 什麼是『監控』? (What is monitoring ) ● Monitoring vs Observability ● Ops as Code using Serverless ● TED: 偉大的領導者如何激勵行為 - by Simon Sinek 28
  • 29. 2018/05/26 @ DevOps Taiwan 29