Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
俺の CloudWatch Agent
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yohei Kawahara
June 20, 2014
30
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
940
kix_009_20190429
inokappa
0
930
2019-04-18 CircleCI Meetup Fukuoka #1
inokappa
2
9.3k
開発で使える AWS の API 操作を模倣する (OSS) ツールを探してみた/JAWS-UG Kagoshima Vol.8
inokappa
1
1.3k
隙間時間を使って exercism.io を始め隊 | リモートで勉強会 #2
inokappa
0
560
Congratulations fukuokarb#100
inokappa
0
4.1k
moto を 'もっと' 使おう/PyFukuoka#4
inokappa
0
4.9k
github-enterprise-user-kai-desuyone
inokappa
0
150
Elixir and AWS Tutorial
inokappa
0
640
Featured
See All Featured
New Earth Scene 8
popppiees
3
2.3k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
290
Rails Girls Zürich Keynote
gr2m
96
14k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
580
Facilitating Awesome Meetings
lara
57
7k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
780
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
310
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ʢͩΊͩ͠ʣ͓ͪͯ͠·͢
Ϩοπࢹʂ ϨοπࣗಈԽʂ