Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
俺の CloudWatch Agent
Search
Yohei Kawahara
June 20, 2014
33
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
俺の CloudWatch Agent
Yohei Kawahara
June 20, 2014
More Decks by Yohei Kawahara
See All by Yohei Kawahara
20191002_CircleCIMeetupFukuoka#2
inokappa
1
950
kix_009_20190429
inokappa
0
950
2019-04-18 CircleCI Meetup Fukuoka #1
inokappa
2
9.5k
開発で使える AWS の API 操作を模倣する (OSS) ツールを探してみた/JAWS-UG Kagoshima Vol.8
inokappa
1
1.4k
隙間時間を使って exercism.io を始め隊 | リモートで勉強会 #2
inokappa
0
570
Congratulations fukuokarb#100
inokappa
0
4.2k
moto を 'もっと' 使おう/PyFukuoka#4
inokappa
0
4.9k
github-enterprise-user-kai-desuyone
inokappa
0
160
Elixir and AWS Tutorial
inokappa
0
650
Featured
See All Featured
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
What's in a price? How to price your products and services
michaelherold
247
13k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
2k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
810
Why Our Code Smells
bkeepers
PRO
340
58k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
How STYLIGHT went responsive
nonsquared
100
6.3k
Transcript
Զͷ CloudWatch Agent ୈ22ճ AWS User Group - Japan ౦ژษڧձ
୭ʁ ͔ͬͺʢ@inokaraʣ ॴଐɿcloudpack ͖ͳαʔϏεɿBilling AWS ॳ৺ऀ
CloudWatch ͬͯ·͔͢ʁ
ΧελϜϝτϦΫε ͬͯ·͔͢ʁ
ΧελϜϝτϦΫεͷઃఆͬ ͯͲ͏ͯ͠·͔͢ʁ
ΧελϜϝτϦΫεͷઃఆΛ ࣗಈԽ͍ͨ͠…
ͦΜͳΞλφʹ…
https://github.com/inokappa/cloudwatch-agent-chef
ͳʹ͜Εʁ
cloudwatch-agent-chef ΧελϜϝτϦΫε༻ͷઃఆΛ chef-solo Λͬͯରͷ ϗετʹొ͢Δ cookbook ॻ͍ͨϨγϐ͕ࢹ༻γΣϧؔʹల։͞ΕΔ cron ͷొΞϥʔϜͷઃఆࣗಈͰ ॳ
LWRP ࡞ Inspired by sensu ͱ sensu-chef
Ϩγϐ cloudwatch_agent_chef_create_script "get_hoge-huga.sh" do action :create metrics_name "hoge-huga" get_metrics_command "v=`ps
aux| grep hoge | wc -l`" unit "Count" threshold "1" end
γΣϧؔ function hoge-huga() { v=`ps aux| grep hoge | wc
-l` t= " 1 " u= " Count" }
·… ͜Ε͚ͩͳΜͰ͚͢ͲͶ… pull requestʢͩΊͩ͠ʣ͓ͪͯ͠·͢
Ϩοπࢹʂ ϨοπࣗಈԽʂ