Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Mackerelとペパボとプラグインと / Mackerel & Pepabo & Plugins
Search
buty4649
September 17, 2018
Programming
2.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Mackerelとペパボとプラグインと / Mackerel & Pepabo & Plugins
Mackerel UG x IDCFクラウド UG Meetup #1での発表資料です。
https://mackerel-ug.connpass.com/event/99477/
buty4649
September 17, 2018
More Decks by buty4649
See All by buty4649
mrubyでワンバイナリーなテキストフィルタツールを作った / Building Text Filtering Tools with mruby #tokyorubykaigi
buty4649
0
180
mrubyで始める自作シェル / Handmade bash-like shell with mruby
buty4649
1
780
AWS DirectConnectを使ったハイブリットクラウドの構築と活用 / hybrid cloud with aws directconnect
buty4649
0
790
開発効率をあげるgitテクニック / Useful git
buty4649
1
1.1k
プライベートクラウドではじめるDevOps / Private Cloud and DevOps
buty4649
1
3.8k
ラズパイで始める電子工作 / Raspberry PI de Asobu
buty4649
0
1.2k
5分でわかるOpenStack Octavia / OpenStack Octavia in 5min
buty4649
0
1.3k
Mackerel User Groupの説明 / about mackerel user group
buty4649
0
3.2k
100行あったmod_rewirteを ngx_mrubyで書き換えた話
buty4649
5
9.5k
Other Decks in Programming
See All in Programming
AmebaブログはKMPから卒業します
kmars0605
0
320
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
120
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
410
Railsバージョンを4倍にした話
optim
0
920
조합이폭발하는디자인시스템이걸눈으로도테스트하라고요
giljongyu
0
710
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
200
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
5.1k
Optunaを作ったときにやりたかったこと、その後 (2026/10/16, Optuna Meetup #3)
iwiwi
4
1.5k
No More NoSuchMethodError
exoego
1
120
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
360
Kotlinの15年とServer-Side Kotlin
n_takehata
1
190
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
120
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
310
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
620
The Pragmatic Product Professional
lauravandoore
37
7.5k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
440
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
970
HDC tutorial
michielstock
2
1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Scaling GitHub
holman
464
140k
Transcript
Mackerelとペパボとプラグインと
高谷雄貴 @buty4649 GMOペパボ株式会社 シニアエンジニア 技術部 プラットフォームグループ
ブログ: https://mackerel-ug.hatenablog.com/ Slack: https://mackerel-ug-slackin.herokuapp.com/
None
https://mackerel.io/ja/customers/pepabo/
• 導入当初は100台 ◦ 今は1200台くらい • NagiosやMuninからの置き換え • 当時はインフラエンジニアのみ利用 ◦ 今はインフラエンジニア以外も積極的に利用
2015年4月よりMackerelを本格利用
• フルマネージド • API • 日本製 • オープンソース • 豊富なプラグイン
• 拡張性 • and more !! Mackerelの好きなところ
• フルマネージド • API • 日本製 • オープンソース • 豊富なプラグイン
• 拡張性 • and more !! Mackerelの好きなところ 簡単にプラグインが作れる!!
HWの監視したいなぁ
[plugin.checks.sensor_error] command = "/usr/bin/ipmitool sdr list | awk -F\\| '$3
!~ /ok|ns/{print $1;exit 2}'"
[plugin.checks.sensor_error] command = "/usr/bin/ipmitool sdr list | awk -F\\| '$3
!~ /ok|ns/{print $1;exit 2}'" とっても簡単!!
弊社のプラグイン紹介
• 弊社 @hfm が作成 • https://github.com/hfm/mackerel-plugin-proxysql • ProxySQL導入に際し作成 • 公式プラグインレジストリに登録済み!
mackerel-plugin-proxysql
• 弊社 @hfm が作成 • https://github.com/hfm/mackerel-plugin-mogilefs • MogileFSのメトリクスを取得 • 公式プラグインレジストリに登録済み!
mackerel-plugin-mogilefs
• 弊社 @yano3 が作成 • https://github.com/yano3/mackerel-plugin-http-status-counter • ngx_mrubyと連携してメトリクスを取る ◦ アクセス数
◦ ステータスコード ◦ レイテンシ • mackerel-plugin-accesslog と同等の機能 ◦ こちらはアクセスログをパースする ◦ https://mackerel.io/ja/blog/entry/advent-calendar2017/day9-mackerel-p lugin-accesslog mackerel-plugin-http-status-counter
mackerel-plugin-http-status-counter
• オートスケール時のインスタンスガチャを検知 ◦ 時々サービスできないインスタンスが生まれる • 起動されたインスタンス数とconsul memberの数を比較 • 差があるとMackerelから通知 異常なインスタンスの検出
インスタンス サービス インスタンスは起動している サービスにはアクセスできない
• plugin.metrics.ssd_life ◦ SSDの寿命を監視 • plugin.metrics.arp_entry ◦ ARPキャッシュのエントリ数を監視 • plugin.checks.sensor_error
◦ HWの故障を検知 • plugin.checks.zombie_vm ◦ ゾンビ化したVMを監視 弊社のプライベートクラウドを支えるプラグイン
(最新作!!) mackerel-plugin-unbound
mackerel-plugin-unbound
まとめ
• Mackerelはプラグインがすぐに作れて便利 • やりたいことがすぐに実現できる • 公式プラグインになくてもすぐに作れる • 汎用的なものはPublicにするとより良いと思う ◦ https://github.com/mackerelio/plugin-registry
まとめ