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
maprobe / mackerel drinkup #7
Search
FUJIWARA Shunichiro
April 24, 2018
Technology
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
maprobe / mackerel drinkup #7
FUJIWARA Shunichiro
April 24, 2018
More Decks by FUJIWARA Shunichiro
See All by FUJIWARA Shunichiro
クラウドを使う側から、作る側へ / 大吉祥寺.pm 2026前夜祭
fujiwara3
8
2.1k
作るべきものと向き合う - ecspresso 8年間の開発史から学ぶ技術選定 / 技術選定con findy 2026
fujiwara3
9
5.6k
さくらのクラウドでのシークレット管理を考える/tamachi.sre#2
fujiwara3
2
380
Amazon ECS デプロイツール ecspresso の開発を支える「正しい抽象化」の探求 / YAPC::Fukuoka 2025
fujiwara3
13
13k
パフォーマンスチューニングのために普段からできること/Performance Tuning: Daily Practices
fujiwara3
9
6.8k
alecthomas/kong はいいぞ
fujiwara3
7
2.6k
ecspressoの設計思想に至る道 / sekkeinight2025
fujiwara3
12
3.8k
さくらのIaaS基盤のモニタリングとOpenTelemetry/OSC Hokkaido 2025
fujiwara3
4
5.1k
監視のこれまでとこれから/sakura monitoring seminar 2025
fujiwara3
12
5.9k
Other Decks in Technology
See All in Technology
Genie Codeハンズオン応用編
taka_aki
0
140
三人寄ればチューリング完全
puhitaku
6
3k
AI時代のデータ基盤を考える問い
pacocat
0
250
トークンマネジメントでAIにとって働きやすい環境を実現する
hikaruegashira
0
140
Head First モブプログラミング / Head First Mobprogramming
takaking22
10
12k
20260817_生成AIの動向と中学校・高等学校での活用を考える_v1.00_公開用
doradora09
PRO
0
210
AI画像認識を活用したゲーム内決済処理検証の自動化
gree_tech
PRO
0
360
RelayerというPHPのフレームワークを作った
polidog
PRO
0
130
地震情報アプリを作ってみた
yama3133
1
110
ソフトウェアサプライチェーンの構造的リスクとコンテナ環境の保護
kyohmizu
5
890
猫付きpingコマンドを自作
uyuki234
0
290
Oracle MCP Servers Explained
thatjeffsmith
0
440
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
390
A designer walks into a library…
pauljervisheath
211
24k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
420
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
500
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
360
Raft: Consensus for Rubyists
vanstee
141
7.6k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
210
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Transcript
maprobe Mackerel ͷϗετใͱ࿈ܞ͢Δ ֎ܗࢹΤʔδΣϯτ 2018.04.24 Mackerel Drinkup #7 @fujiwara
@fujiwara ٕज़෦ github.com/fujiwara sfujiwara.hatenablog.com
Mackerel ͷࢹͷྲྀΕ
None
ϗετͷμϯݕΛ͍͍͔Μ͡ʹ͍ͨ͠ • 7ఔ agent ͔Β్ઈ͠ͳ͍ͱμϯͱఆ͞Εͳ͍ • "connectivity" Ξϥʔτ Critical Ϩϕϧ͔͠ͳ͍
• ଟॏԽͯ͋͠ΔϗετͰେ͛͞
෦Ϧιʔεʹ֎ܗࢹΛ͍ͨ͠
None
maprobe ͭ͘Γ·ͨ͠ github.com/fujiwara/maprobe
None
maprobe works... 1. Mackerel API Λୟ͍ͯϗετใΛऔಘ • Service, Role ͰϑΟϧλϦϯά
2. ֤ϗετʹରͯ͠ probe(ping,tcp,http,command)Λ࣮ߦ 3. ಘΒΕͨ݁ՌΛϗετϝτϦοΫͱͯ͠ Mackerel ʹૹ৴ 4. 60ඵ͝ͱʹ܁Γฦ͠
ping probe production αʔϏε ͷ server ϩʔϧʹ ping Λૹ৴ probes:
- service: production role: server ping: address: '{{ .Host.IPAddresses.eth0 }}'
None
HTTP Probe production αʔϏε ͷ InternalELB ϩʔϧʹ HTTP probes: -
service: production role: InternalELB http: url: 'http://{{ .Host.CustomIdentifier }}/api/healthcheck' post: POST headers: Content-Type: application/json body: '{"hello":"world"}' expect_pattern: 'ok'
TCP Probe production αʔϏε ͷ redis ϩʔϧʹ TCP probes: -
service: production role: redis tcp: host: '{{ .Host.IPAddress.eth0 }}' port: 6379 send: "PING\n" expect_pattern: "PONG" quit: "QUIT\n"
Command Probe mackerel-plugin ޓίϚϯυ࣮ߦՄೳ probes: - service: production role: redis
command: command: "mackerel-plugin-redis -host {{ .Host.IPAddress.eth0 }} -tempfile /tmp/redis-{{ .Host.ID }}"
ίϚϯυ࣮ߦͷԠ༻ྫ probes: - service: production role: EC2 command: command: 'cleanup.sh
{{.Host.ID}} {{index .Host.Meta.Cloud.MetaData "instance-id"}}' Mackerel ϗετ ID ͱ EC2 Πϯελϯε ID Λݩʹࣗಈୀ͢ Δ
Blog ॻ͖·ͨ͠ https://sfujiwara.hatenablog.com/entry/2018/04/23/113316 Enjoy!