SlideShare a Scribd company logo
1 of 69
Download to read offline
C L O U D WAT C H を
G R A FA N A + G R A P H I T E で
見 る よ う に し た ら
幸 せ に な っ た 件
2 0 1 5 / 0 4 / 0 3 J AW S - U G 中 央 線 第 5 回 勉 強 会
か い し ゃ い ん
せ い べ つ : お と こ
レ ベ ル : 2 7
H P 3 0 / 1 2 0
M P 3 / 1 5
自 己 紹 介
2 0 1 4 / 5 N O W
株 式 会 社 : S Y S T E M O P E R ATO R
な ま え     : 西 村   遊
つ い っ た ー :@gacharion
Applibot
好 き な AW S サ ー ビ ス : Auto Scaling Cloud Watch
S Y S T E M O P E R AT O R
• サービスインフラ設計/構築/監視/運用/構成管理
• 基本的に全アプリを見ている
• ○○担当とかはない
• 現在2名
今日のお話
幸せ?
Cloudwatchを
Grafanaで見れるようにしたら
働きやすくなった
なぜCloudWatchだけではいけなかったか
Grafana/Graphiteとは?
Grafana+Graphiteで実現した幸せ
まとめ
目 次
なぜCloudWatchだけでは
いけなかった幸せが足りなかったのか
CloudWatch + SNS
Management Consoleへ
ログインして
CloudWatch
CloudWatchに閾値設定して
SNSでメール送信設定
CloudWatch + SNS
Management Consoleへ
ログインして
CloudWatch
CloudWatchに閾値設定して
SNSでメール送信設定
CloudWatch + SNS
Management Consoleへ
ログインして
CloudWatch
CloudWatchに閾値設定して
SNSでメール送信設定
閾値設定:自動化必須
メール :見ない見落とす
ログイン:面倒
値の保持:2週間
アカウント一つを
常時見るような環境なら
まだいいけど
たくさん
ブラウザ足りない…
ブラウザ足りない…
でも常に見るわけじゃないし
閾値設定:自動化OK
メール :ちゃんと見る
ログイン:やったる
としても
見たい時の状況
障害
あの時の負荷って…
ログインして
毎回サービス毎に選んで見るのつらい
この画面いくのに
1. ログイン
2. サービス(RDS)選択
3. インスタンス選択
4. Show Monitoring
A lot of accounts
すぐ見たいのにやきもき
別のアカウントの見てたり
サービス毎に切り替えが必要
たまに表示がおかしい(これはブラウザのせい)
あっ…2週間前までのしかないっす…
つ ら い
一通り監視構成を整えた
Grafana + Graphite
Grafana ??
Javascript + HTML + CSS(1系)
機能豊富なdashboardとグラフエディター
バックエンドとして
Graphite / InfluxDB / OpenTSDB
を選択可能
dashboard情報はElasticsearch or SQLite
version1.9で1系の開発は終わり2.0が開発中。
現在β版(2015/3/30)
dashboard
Graphite ??
Graphite
- Scalable Realtime Graphing -
Python
Sensu + Graphiteという事例が結構有名
http://techblog.yahoo.co.jp/operation/2014-sensu-and-graphite/
構成
carbon
ネットワーク経由でのメトリック受信・ストレージへの書き込み
whisper
ファイル形式の時系列データベース
graphite-web
Githubから
Grafana + Graphite
dashboard情報
データ更新
データファイル
これを
こう見れるようにする
Grafana+Graphite
で実現した幸せ
値の投げ入れが自由
アカウント/サービス同時にデータ閲覧
2週間以上残しておける
Time rangeが自由自在
DevOpsな雰囲気
DEMO
値の投げ入れが自由
TAG= DB.account01.test.random
VALUE=`expr $RANDOM % 100`
UTIME=`date +%s`
SERVER_IP= graphiteサーバのIP
echo ${TAG} ${VALUE} ${UTIME} ¦nc ${SERVER_IP} 2003
graphiteサーバの2003ポート(default)に対して
TAG 値 Unixtime の順で送ればOK
この部分
アカウント/サービス同時に
データ閲覧
dashboard
項目説明 CloudFront
ELB
RDS
2週間以上残しておける
[cloudwatch]
pattern = ^cloudwatch.
retentions = 60s:365d
グラフ作成時に指定できる(carbon)
/etc/carbon/storage-schemas.conf
Time rangeが自由自在
DevOpsな雰囲気
Dev
負荷どうですかね?
どうかしました?
Ops
イベント開始したんですけど
CloudWatchで見れますよ
どうやって見るんでしたっけ
(笑)
見ます
本音
Dev
イベント始まったから負荷見といてね。
いっぱいアクセス来ると思うのでよろしく。
CloudWatch?どうみればいいんだっけ?
アラート飛んできてないし問題ないだろ。
(見てみる)…やっぱり問題ないな。
CloudWatchのIAM渡してるから
それで見といてくれればいいのに。
Ops
※フィクションです。
 会社内でどうこうとか知りません。
なぜこんなことに
サーバー負荷はsysopが見るものという認識
sysopしか見れないと思われている
それはなぜか?
CloudWatch + SNS
Management Consoleへ
ログインして
CloudWatch
CloudWatchに閾値設定して
SNSでメール送信設定
この画面いくのに
1. ログイン
2. サービス(RDS)選択
3. インスタンス選択
4. Show Monitoring
こんなやらないといけないから
なぜこんなことに
普段から見る自分たちでも手間と思う事
それを専門じゃない人にやってもらうというのは傲慢
見てくださいを、いかに見てもらえるようにするか
必要な情報を必要な人が手間無く見れるように
dashboard
項目説明 CloudFront
ELB
RDS
Dev
負荷どうですかね?
こちらをご覧ください
Ops
布教活動
なにこれ
こーであーでこれがここまで
行くとやばいです
リンクこちらです
DEMO
説明
リンク貼っておきますね
自由に触っていいですよ
Dev
こういうの見れると
うれしいんですよね
何処見たらいいですかね?
Ops
問い合わせ内容が変化してくる
このDBのこの値なんだけど
見れるよう調整しますね
Dev
負荷というものへの意識UP
→改善の意識UP
サービス内部の理解
→サービスへの愛UP
Ops
同じ情報の共有 = 意識の統一
Win - Win
まとめ
Cloudwatchを
Grafanaで見れるようにしたら
全体で負荷を意識する習慣が
少しづつできてきて、サービスの改善
につながるようになった
問題の共有 = 可視化
お互いの手間を考える
見やすい = 正義
幸せ
もうすぐ2.0でるし
みんなでgrafana触って
情報交換しよう
一緒に働いてくれる方大募集中!!
エンジニア・企画問わず
興味のある方はご連絡ください
御 清 聴
あ り が と う ご ざ い ま し た

More Related Content

Recently uploaded

プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価sugiuralab
 
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ       2024/04/12の勉強会で発表されたものです。新人研修のまとめ       2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。iPride Co., Ltd.
 
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directoryosamut
 
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000Shota Ito
 
プレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツールプレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツールsugiuralab
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Danieldanielhu54
 
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxIoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxAtomu Hidaka
 
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。iPride Co., Ltd.
 

Recently uploaded (8)

プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価
 
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ       2024/04/12の勉強会で発表されたものです。新人研修のまとめ       2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
 
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
 
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
 
プレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツールプレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツール
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
 
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxIoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
 
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

CloudwatchをGrafana+Graphiteで見るようにしたら幸せになった件