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 as Code
Search
papix
August 18, 2015
Technology
46
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Mackerel as Code
papix
August 18, 2015
More Decks by papix
See All by papix
Houtou.pm #1
papix
0
2k
Perl歴約10年のエンジニアがフルスタックTypeScriptに出会ってみた
papix
1
790
YAPC::Kyotoの「全て」 / All of "YAPC::Kyoto"
papix
0
1.7k
イベントの中の人 / Inside the Events
papix
0
380
2022年に始めるPerlでWebサービス開発(趣味)
papix
0
660
ワーケーションに関する考察
papix
3
2.4k
(今更)Amplifyさっくり体験
papix
0
940
はてなにおけるGitHub Actions活用事例 / GitHub Actions in Hatena
papix
0
2.9k
ミススペルを発見するmisspellのご紹介 / Introduce misspell
papix
0
1.3k
Other Decks in Technology
See All in Technology
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
110
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
ストレスなくAIと付き合いたい!こんなときどうしてる?
namiki64
3
540
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
190
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
430
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
PHPカンファレンス関西の招待状 / Invitation to PHP Conference Kansai
ykanoh
0
130
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
350
Gemini Intelligence 入門 ― AppFunctions と Gemini Nano
takuroabe
0
270
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
4
1.1k
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
Featured
See All Featured
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
730
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Claude Code のすすめ
schroneko
67
230k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
560
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
Building the Perfect Custom Keyboard
takai
2
910
Rails Girls Zürich Keynote
gr2m
96
14k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
550
The SEO identity crisis: Don't let AI make you average
varn
0
590
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
Transcript
Mackerel as Code by papix (GaiaX Co., Ltd.)
papix (GaiaX Co., Ltd.) R&D Div. Technical Basis Gr. •
Infrastructure Engineer • “Reactio” Engineer • Technical Advanced Officer • Recruitment Officer • Perl Community Specialist • “Perl Entrance” headmaster PAPIX papix _̲_̲papix_̲_̲ takayuki.fukumoto.92 Masteries http://papix.hatenablog.com/ _̲_̲papix_̲_̲ papics (Free materials)
None
✕ Reactioのホストは全て Mackerelで管理理しています
監視も全て Mackerelに任せています
> 最強に便便利利 <
「監視」といえば…
None
ありがたい!!!!!
早速活⽤用してみた
• Mackerelの監視設定を「コード」で管理理 – リポジトリにpushするだけで⾃自動的に 適⽤用されるようにする • メリット – Pull Requestで監視設定を変更更できる – 監視設定の変更更履履歴が(Gitのログで)⾃自動的に 管理理される
Mackerel as Code
デモ
開発者 Reactio-‐‑‒HQ Amazon EC2 Amazon EC2 Amazon EC2 ……… Bitbucket
設定ファイル ①「設定ファイル」を push ②Jenkinsが pull ③「設定ファイル」に応じて Mackerelを操作 ④⾃自動的に監視の設定が 書き換えられる!
Q. MackerelのAPIはどう叩く?
「mkr」コマンドもありますが…
None
本⽇日リリースの0.03で対応!!!
• Reactioでは, 様々な操作をPerlで実装 – ステージング/本番へのデプロイとか… – AMIの作成とか… • なので, Mackerelの操作もPerlで実施 – Reactio本体もPerlなので, ⾔言語を統⼀一
– シェルスクリプトより書きやすい!!! WebSerivce::Mackerel
• 「APIによる監視項⽬目の変更更」はかなり便便利利 – まだまだ⼯工夫の余地がありそう • サービスメトリックの⾃自動スケール(?) • 急激な増加はアラートを出し, 緩やかな増加には アラートを出さない, とか…
• ReactioではまだまだMackerelを活⽤用中! – 時間がないので, 詳しい話は別の機会に… まとめ
✕ ご静聴ありがとうございました!