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
AdServer Casual Monitoring by fluentd, Mackerel
Search
Takumi KANZAKI
November 10, 2015
Technology
0
1.7k
AdServer Casual Monitoring by fluentd, Mackerel
Fashion Tech meetup #1 LT
Takumi KANZAKI
November 10, 2015
Tweet
Share
More Decks by Takumi KANZAKI
See All by Takumi KANZAKI
SmartHRにおけるアカウントモデルの移行のはなし/Story of migration of account model in SmartHR - Rails Developers Meetup 2018 Day 4 Nouvelle Vague -
tknzk
6
2k
新生児〜生後6ヶ月を支えた技術/kosodate-engineer-meetup-3
tknzk
4
2.1k
kosodate_engineer_meetup_2
tknzk
3
5.6k
eb_with_multi_container_docker
tknzk
1
2.3k
Other Decks in Technology
See All in Technology
OCI Security サービス 概要
oracle4engineer
PRO
0
6.5k
強いチームと開発生産性
onk
PRO
35
11k
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
480
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
SREによる隣接領域への越境とその先の信頼性
shonansurvivors
2
520
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
サイバーセキュリティと認知バイアス:対策の隙を埋める心理学的アプローチ
shumei_ito
0
390
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
410
飲食店データの分析事例とそれを支えるデータ基盤
kimujun
0
110
SSMRunbook作成の勘所_20241120
koichiotomo
2
150
生成AIが変えるデータ分析の全体像
ishikawa_satoru
0
150
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
310
Featured
See All Featured
Gamification - CAS2011
davidbonilla
80
5k
Designing for Performance
lara
604
68k
Into the Great Unknown - MozCon
thekraken
32
1.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
It's Worth the Effort
3n
183
27k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Building an army of robots
kneath
302
43k
Scaling GitHub
holman
458
140k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Optimizing for Happiness
mojombo
376
70k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Transcript
FasionTech Meetup LT AdServer Casual Monitoring by fluentd, Mackerel 1
VASILY Inc. 2015
Me • Takumi Kanzaki (@tknzk) • VASILY Inc. Backend Engineer
• 2015.04~ • iQONADΛϝΠϯͰ୲ 2 VASILY Inc. 2015
iQONAD • iQON͓Αͼ֎෦ΞϓϦʹࠂ৴Λߦ͍ͬͯΔADωοτϫʔΫ • 2014.10~ 3 VASILY Inc. 2015
iQONAD • software, middleware • Ruby, Rails, sinatra • MySQL,
memcached, Redis • infra • EC2, RDS • docker, Elasticbeanstalk (2015.06~) • auto-scaling 4 VASILY Inc. 2015
Why Casual Monitoring • ॳظ։ൃ2िؒͰϩʔϯν • طଘͷΈ • ੜϩάΛऩूͯ͠ूܭ •
fluentdͰlog-serverʹू͍ͯ͠Δ͕ະूܭ 5 VASILY Inc. 2015
Casual Monitoring? • ͓͓·͔ͳঢ়ଶΛࢹ͍ͨ͠ • աڈͲΜͳঢ়گ͔ͩͬͨΛѲ͍ͨ͠ 6 VASILY Inc. 2015
Casual Monitoring? • ৴ͷਪҠ • impression/clickͳͲͷਪҠ • ৴ΤϥʔͷਪҠ • http
status codeͷਪҠ • etc.. 7 VASILY Inc. 2015
without Casual Monitoring? • ϩάੳ • BigQuery • latency monitoring
• error rate • NewRelic 8 VASILY Inc. 2015
Log Collect • fluentd • mackerel 9 VASILY Inc. 2015
fluentd • Fluentd is an open source data collector for
unified logging layer. 10 VASILY Inc. 2015
Mackerel • A RevolutionaryNew Kind ofApplication PerformanceManagement 11 VASILY Inc.
2015
plugin • fluent-plugin-datacounter • fluent-plugin-mackerel • (fluent-plugin-zabbix) 12 VASILY Inc.
2015
fluent-plugin-datacounter • ಛఆͷkeyͷΛಛఆͷִؒͰूܭͯ͘͠ΕΔ <store> type datacounter count_interval 1m count_key publisher_id
aggregate all tag stats.delivery.publisher pattern1 publisher_id_1 ^1$ pattern2 publisher_id_2 ^2$ pattern3 publisher_id_3 ^3$ pattern4 publisher_id_4 ^4$ </store> 13 VASILY Inc. 2015
fluent-plugin-mackerel <match stats.delivery.publisher> type mackerel api_key MACKEREL_API_KEY service iqon-ad metrics_name
ad_server_delivery_publisher.${out_key} out_keys unmatched_count,publisher_id_1_count,publisher_id_2_count,publisher_id_3_count,publisher_id_4_count </match> 14 VASILY Inc. 2015
metrics 15 VASILY Inc. 2015
spike • ֎෦৴͍ͯ͠ΔͷͰ৴ઌΞϓϦͰpush৴͕͋Δspike • աڈͷspikeใΛ͋ͭΊ͓͓ͯ·͔ʹ࣌ؒΛѲ • time scheduled base auto-scalingͰରԠ
16 VASILY Inc. 2015
metrics page • iQONADͷ෦πʔϧʹmackerelͷάϥϑΛΓ͚ͭ • iframe, markdown ͳͲͰ֎෦ʹshareͰ͖Δ • ͪΖΜmackerelͷೝূඞཁ
17 VASILY Inc. 2015
18 VASILY Inc. 2015
Alert • custom metricsͷঢ়گࢹରʹઃఆͰ͖Δ • nginxͷstatusͷerror countͳͲ 19 VASILY Inc.
2015
Future • norikra • norikra-listener-mackerel 20 VASILY Inc. 2015
Conclusion • fluentdͱmackerelΛ͔ͭͬͯ؆୯ʹσʔλͷϞχλϦϯά • fluentdͷconfigΛগ͠ॻ͍ͯɺmackerelͷཧπʔϧ͔ΒΆͪ ΆͪઃఆͰྃ • mackerel͍͢͝ศར!!! • άϥϑΛΓग़ͯ͠ϖϥΠνͷϖʔδΛͭ͘Δ͜ͱͰΤϯδχ
ΞҎ֎ʹ • ϞχλϦϯά͍ͯ͠Δσʔλࢹରʹઃఆ 21 VASILY Inc. 2015
We are hiring! •
[email protected]
22 VASILY Inc. 2015
end ͋Γ͕ͱ͏͍͟͝·ͨ͠ 23 VASILY Inc. 2015