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
sensuとその周辺のはなし
Search
Nobutoshi Ogata
June 12, 2014
Technology
0
110
sensuとその周辺のはなし
Nobutoshi Ogata
June 12, 2014
Tweet
Share
More Decks by Nobutoshi Ogata
See All by Nobutoshi Ogata
サーバサイドの技術スタック・アーキテクチャ総ざらい - SmartNews Tech Night in Fukuoka Vol.1
nobu666
1
17k
SmartNews x PLAID - Cost cut and AWS Enterprise Support
nobu666
0
240
Why Slack?
nobu666
0
270
A Complete Work of SmartNews's SRE
nobu666
2
2.9k
SRE at SmartNews
nobu666
0
7.7k
SmartNews の最近の取り組みについて
nobu666
4
3.4k
Introducing in-hourse PaaS
nobu666
1
260
Monitoring of SmartNews
nobu666
0
140
The story becase happy with itamae
nobu666
0
110
Other Decks in Technology
See All in Technology
20250122_FinJAWS
takuyay0ne
2
340
Autify Company Deck
autifyhq
2
41k
プロダクト価値を引き上げる、「課題の再定義」という習慣
moeka__c
0
160
15年入社者に聞く! これまでのCAのキャリアとこれから
kurochan
1
130
SREKaigi.pdf
_awache
2
3.1k
財務データを題材に、 ETLとは何であるかを考える
shoe116
5
1.9k
日本語プログラミングとSpring Bootアプリケーション開発 #kanjava
yusuke
0
160
データ基盤におけるIaCの重要性とその運用
mtpooh
5
790
AIアプリケーション開発でAzure AI Searchを使いこなすためには
isidaitc
1
260
HCP TerraformとAzure:イオンスマートテクノロジーのインフラ革新 / HCP Terraform and Azure AEON Smart Technology's Infrastructure Innovation
aeonpeople
3
840
顧客の声を集めて活かすリクルートPdMのVoC活用事例を徹底解剖!〜プロデザ!〜
recruitengineers
PRO
0
120
ObservabilityCON on the Road Tokyoの見どころ
hamadakoji
0
110
Featured
See All Featured
It's Worth the Effort
3n
184
28k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Raft: Consensus for Rubyists
vanstee
137
6.7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
980
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Optimising Largest Contentful Paint
csswizardry
33
3k
Building an army of robots
kneath
302
45k
StorybookのUI Testing Handbookを読んだ
zakiyama
28
5.4k
The Invisible Side of Design
smashingmag
299
50k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Transcript
sensuͱͦͷपลͷͳ͠ Monitoring Casual #6 2014.6.12 ϋονגࣜձࣾ Nobutoshi Ogata
ࣗݾհ • ඌܗெढ़ a.k.a @nobu666 • ɹɹɹˠ ϋονגࣜձࣾ • talentio
ͱ͍͏αʔϏεΛ࡞͍ͬͯ·͢ • ਓࡐ࠾༻ͱٻ৬׆ಈͷͨΊͷαʔϏεͰ͢ • ΠϯϑϥΤϯδχΞɺͱ͍ͭͭL4͔Β্
talentioͷαʔόߏ֓ཁ %JSFDU$POOFDU ౿Έ DB memchached DC AWS ELB WWW batch
sensu
ೖ͙ࣾͯ͢͠ͷঢ়ଶ • ϝʔϧඈͳ͍ঢ়ଶͷZabbix • ઃఆΛࢼΈΔ͕UIͷμϝ͞ʹ৺͕ંΕΔ • all-in-oneͳͷ͍͍Μ͚ͩͲͳʔ • ͳΔ͘গͳ͍ઃఆͰࢮ׆ࢹೖΕ͍ͨ •
͔֦ͭுੑ͕͋Δͱͳ͓Α͍
None
sensuͷ͍͍ͱ͜Ζ • clientͷొΛ͠ͳ͍Ͱ͍͍ • client.jsonʹదʹattributesΛՃͯ͠ɺ sensu-serverͰҰׅཧͰ͖Δ • nagios pluginΛύΫΕΔ
sensuͷͭΒΈ (1) • No keep-alive… ͕ফ͑ͯ͘Εͳ͍ • Ͳͳ͔ͨղܾํ๏Λ͝ଘͰͨ͠Βڭ͑ͯ Լ͍͞…
sensuͷͭΒΈ (2) • Πϥͬͱ͢Δ • ͷͰ͜͏͠·ͨ͠… $ cat /etc/init.d/sensu #!/bin/bash
/etc/init.d/sensu-server $1 /etc/init.d/sensu-api $1
sensuͰͬͯΔ͜ͱ • Health check • process(http/mysql/batch) • response(http) • replication
status(mysql/solr) • disk usage, load ave. • Notification • mail • slack
ଟগखΛೖΕͯΔ • backup༻ʹ͍͔ͭ͘ͷmysqlΛmysqld_multiͰू ͯ͠Δ • check-mysql-alive.jsonʹ͍͍͚ͪͪ͢ͷ͕Ί ΜͲ͍ͷͰɺmysqld_multi reportͱmy.cnf͔Β ࢹରΛউखʹܾΊΔΑ͏ʹ •
slack௨࣌ ```hogehoge``` ͱ͔ͨͬͨ͠ͷͰࢦఆͷ จࣈྻͰғΊΔΑ͏ʹpull requestத
sensuͰͬͯͳ͍͜ͱ • metricsͷऩू • why? • graphiteΊΜͲ͍ʢ୯ʹΑ͘Θ͔ͬͯͳ͍ʣ • es+kibanaେ͛͞ͳؾ͕͢Δ •
͍·NewRelicͬͯΔ • agentͷinstallͱpluginͷinstall͕ͪΐͬͱΊΜͲ͍ • ΊΜͲ͍ͬͭʔ͔ͨ·ʹsyntax errorͱ͔Ͱͯಈ͔ͳ͍ • mackerelͪΐͬͱ͓ࢼ͠த
͜Ε͔ΒΓ͍ͨ͜ͱ • ansible࿈ܞ • reloadͩͷrestartͩͷͷλΠϛϯάͰalert͕ඈΜͰ͠·͏ͷͰΒ͍ͤͨ • sensu-cliͰͰ͖Δͷ͔ͳ • twilio +
slack࿈ܞ • ਂͩͱϝʔϧ͚ͩͰؾ͔ͮͳ͍ͷͰి໐Β͍ͨ͠ • ిʹग़ͯ͠·͏ͱ͔͔ۚΔͷͰɺslack͔ΒిͱΊΔ • hubot + slack࿈ܞ • sensu-adminͷը໘͔ΒͰ͖Δ͜ͱslack͔ΒΕΔΑ͏ʹ͍ͨ͠
͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠