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
Mackerelとペパボとプラグインと / Mackerel & Pepabo & Plugins
Search
buty4649
September 17, 2018
Programming
0
2k
Mackerelとペパボとプラグインと / Mackerel & Pepabo & Plugins
Mackerel UG x IDCFクラウド UG Meetup #1での発表資料です。
https://mackerel-ug.connpass.com/event/99477/
buty4649
September 17, 2018
Tweet
Share
More Decks by buty4649
See All by buty4649
mrubyでワンバイナリーなテキストフィルタツールを作った / Building Text Filtering Tools with mruby #tokyorubykaigi
buty4649
0
120
mrubyで始める自作シェル / Handmade bash-like shell with mruby
buty4649
1
610
AWS DirectConnectを使ったハイブリットクラウドの構築と活用 / hybrid cloud with aws directconnect
buty4649
0
720
開発効率をあげるgitテクニック / Useful git
buty4649
1
960
プライベートクラウドではじめるDevOps / Private Cloud and DevOps
buty4649
1
3.5k
ラズパイで始める電子工作 / Raspberry PI de Asobu
buty4649
0
1.1k
5分でわかるOpenStack Octavia / OpenStack Octavia in 5min
buty4649
0
1.2k
Mackerel User Groupの説明 / about mackerel user group
buty4649
0
3k
100行あったmod_rewirteを ngx_mrubyで書き換えた話
buty4649
5
9k
Other Decks in Programming
See All in Programming
【第4回】関東Kaggler会「Kaggleは執筆に役立つ」
mipypf
0
1k
TanStack DB ~状態管理の新しい考え方~
bmthd
2
470
🔨 小さなビルドシステムを作る
momeemt
3
660
TROCCO×dbtで実現する人にもAIにもやさしいデータ基盤
nealle
0
580
CJK and Unicode From a PHP Committer
youkidearitai
PRO
0
110
Jakarta EE Core Profile and Helidon - Speed, Simplicity, and AI Integration
ivargrimstad
0
330
MLH State of the League: 2026 Season
theycallmeswift
0
220
フロントエンドのmonorepo化と責務分離のリアーキテクト
kajitack
2
160
Go言語での実装を通して学ぶLLMファインチューニングの仕組み / fukuokago22-llm-peft
monochromegane
0
110
Swift Updates - Learn Languages 2025
koher
2
430
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
500
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
110
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
9
580
Docker and Python
trallard
45
3.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
Raft: Consensus for Rubyists
vanstee
140
7.1k
The Cult of Friendly URLs
andyhume
79
6.6k
Agile that works and the tools we love
rasmusluckow
330
21k
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Building Adaptive Systems
keathley
43
2.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
The Language of Interfaces
destraynor
161
25k
Scaling GitHub
holman
463
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
まとめ