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
Yohei Kawahara
June 20, 2014
0
26
俺の CloudWatch Agent
Yohei Kawahara
June 20, 2014
Tweet
Share
More Decks by Yohei Kawahara
See All by Yohei Kawahara
20191002_CircleCIMeetupFukuoka#2
inokappa
1
900
kix_009_20190429
inokappa
0
890
2019-04-18 CircleCI Meetup Fukuoka #1
inokappa
2
8.8k
開発で使える AWS の API 操作を模倣する (OSS) ツールを探してみた/JAWS-UG Kagoshima Vol.8
inokappa
1
1.3k
隙間時間を使って exercism.io を始め隊 | リモートで勉強会 #2
inokappa
0
500
Congratulations fukuokarb#100
inokappa
0
4.1k
moto を 'もっと' 使おう/PyFukuoka#4
inokappa
0
4.7k
github-enterprise-user-kai-desuyone
inokappa
0
140
Elixir and AWS Tutorial
inokappa
0
620
Featured
See All Featured
Bash Introduction
62gerente
615
210k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Automating Front-end Workflow
addyosmani
1371
200k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
A Modern Web Designer's Workflow
chriscoyier
698
190k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
Skip the Path - Find Your Career Trail
mkilby
0
52
The Limits of Empathy - UXLibs8
cassininazir
1
210
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
88
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ʢͩΊͩ͠ʣ͓ͪͯ͠·͢
Ϩοπࢹʂ ϨοπࣗಈԽʂ