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
170
mrubyで始める自作シェル / Handmade bash-like shell with mruby
buty4649
1
760
AWS DirectConnectを使ったハイブリットクラウドの構築と活用 / hybrid cloud with aws directconnect
buty4649
0
780
開発効率をあげるgitテクニック / Useful git
buty4649
1
1.1k
プライベートクラウドではじめるDevOps / Private Cloud and DevOps
buty4649
1
3.7k
ラズパイで始める電子工作 / 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.1k
100行あったmod_rewirteを ngx_mrubyで書き換えた話
buty4649
5
9.4k
Other Decks in Programming
See All in Programming
Ghostty + Neovimで作る 透明でカッコ良い開発環境
j341nono
0
170
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
570
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
550
mrbgem 三角測量 開発
ogom
0
240
速習iPhone Duo対応
yuukiw00w
2
980
Agents on Rails - Rails at Scale 2026
irinanazarova
0
530
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
APNsからLive Activityを開始する話
yumnumm
0
160
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
140
カツオ、ご期待ください
suneo3476
0
170
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
280
Featured
See All Featured
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
Making the Leap to Tech Lead
cromwellryan
135
10k
Being A Developer After 40
akosma
92
590k
Designing Powerful Visuals for Engaging Learning
tmiket
1
600
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
590
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
Speed Design
sergeychernyshev
33
2.2k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Why Our Code Smells
bkeepers
PRO
340
58k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
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
まとめ