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
2.1k
新生児〜生後6ヶ月を支えた技術/kosodate-engineer-meetup-3
tknzk
4
2.2k
kosodate_engineer_meetup_2
tknzk
3
5.7k
eb_with_multi_container_docker
tknzk
1
2.3k
Other Decks in Technology
See All in Technology
いまからでも遅くない!コンテナでWebアプリを動かしてみよう!コンテナハンズオン編
nomu
0
200
Aurora PostgreSQLがCloudWatch Logsに 出力するログの課金を削減してみる #jawsdays2025
non97
1
280
Linuxのブートプロセス
sat
PRO
6
100
Oracle Cloud Infrastructure IaaS 新機能アップデート 2024/12 - 2025/02
oracle4engineer
PRO
0
110
最近のラズピッピいじり / 20250308-rpijam-13th-birthday
akkiesoft
0
140
アウトカムを最大化させるプロダクトエンジニアの動き
hacomono
PRO
0
170
目標と時間軸 〜ベイビーステップでケイパビリティを高めよう〜
kakehashi
PRO
8
1.1k
AI_Agent_の作り方_近藤憲児
kenjikondobai
6
1.2k
"TEAM"を導入したら最高のエンジニア"Team"を実現できた / Deploying "TEAM" and Building the Best Engineering "Team"
yuj1osm
1
250
OCI IAM Identity Domains Entra IDとの認証連携設定手順 / Identity Domain Federation settings with Entra ID
oracle4engineer
PRO
1
1.4k
VPoEの引き継ぎでやったこと、わかったこと
saitoryc
1
280
完璧を捨てろ! “攻め”のQAがもたらすスピードと革新/20250306 Hiroki Hachisuka
shift_evolve
0
180
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Six Lessons from altMBA
skipperchong
27
3.6k
The Cost Of JavaScript in 2023
addyosmani
47
7.5k
Designing for humans not robots
tammielis
250
25k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
Into the Great Unknown - MozCon
thekraken
35
1.7k
Become a Pro
speakerdeck
PRO
26
5.2k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
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