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
100
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
230
Why Slack?
nobu666
0
270
A Complete Work of SmartNews's SRE
nobu666
2
2.8k
SRE at SmartNews
nobu666
0
7.6k
SmartNews の最近の取り組みについて
nobu666
4
3.4k
Introducing in-hourse PaaS
nobu666
1
250
Monitoring of SmartNews
nobu666
0
130
The story becase happy with itamae
nobu666
0
100
Other Decks in Technology
See All in Technology
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
DMARC 対応の話 - MIXI CTO オフィスアワー #04
bbqallstars
1
160
Making your applications cross-environment - OSCG 2024 NA
salaboy
0
180
Lexical Analysis
shigashiyama
1
150
スクラム成熟度セルフチェックツールを作って得た学びとその活用法
coincheck_recruit
1
140
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
OCI Vault 概要
oracle4engineer
PRO
0
9.7k
Platform Engineering for Software Developers and Architects
syntasso
1
510
The Rise of LLMOps
asei
6
1.3k
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
BBQ
matthewcrist
85
9.3k
Embracing the Ebb and Flow
colly
84
4.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Designing for humans not robots
tammielis
250
25k
4 Signs Your Business is Dying
shpigford
180
21k
The Pragmatic Product Professional
lauravandoore
31
6.3k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Unsuck your backbone
ammeep
668
57k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Statistics for Hackers
jakevdp
796
220k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
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͔ΒΕΔΑ͏ʹ͍ͨ͠
͝੩ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠