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
mkr + peco + tmux + ssh
Search
Yuuki Tsubouchi (yuuk1)
April 27, 2017
Programming
0
9k
mkr + peco + tmux + ssh
Mackerel Meetup #10 Tokyo
Yuuki Tsubouchi (yuuk1)
April 27, 2017
Tweet
Share
More Decks by Yuuki Tsubouchi (yuuk1)
See All by Yuuki Tsubouchi (yuuk1)
eBPFを用いたAIネットワーク監視システム論文の実装 / eBPF Japan Meetup #4
yuukit
3
840
クラウドのテレメトリーシステム研究動向2025年
yuukit
3
950
博士論文公聴会: Scaling Telemetry Workloads in Cloud Applications: Techniques for Instrumentation, Storage, and Mining / PhD Defence
yuukit
1
170
博士学位論文予備審査 / Scaling Telemetry Workloads in Cloud Applications: Techniques for Instrumentation, Storage, and Mining
yuukit
1
1.9k
MetricSifter:クラウドアプリケーションにおける故障箇所特定の効率化のための多変量時系列データの特徴量削減 / FIT 2024
yuukit
2
260
工学としてのSRE再訪 / Revisiting SRE as Engineering
yuukit
19
14k
Cloudless Computingの論文紹介
yuukit
2
560
#SRE論文紹介 Detection is Better Than Cure: A Cloud Incidents Perspective V. Ganatra et. al., ESEC/FSE’23
yuukit
3
2.1k
エンジニアのためのSRE論文への招待 / Introduction to SRE Papers for Engineers
yuukit
2
11k
Other Decks in Programming
See All in Programming
GitHub Copilot and GitHub Codespaces Hands-on
ymd65536
1
120
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
220
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
130
GraphRAGの仕組みまるわかり
tosuri13
8
480
CursorはMCPを使った方が良いぞ
taigakono
1
180
データの民主化を支える、透明性のあるデータ利活用への挑戦 2025-06-25 Database Engineering Meetup#7
y_ken
0
320
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
260
Haskell でアルゴリズムを抽象化する / 関数型言語で競技プログラミング
naoya
17
4.9k
設計やレビューに悩んでいるPHPerに贈る、クリーンなオブジェクト設計の指針たち
panda_program
6
1.4k
Google Agent Development Kit でLINE Botを作ってみた
ymd65536
2
190
AWS CDKの推しポイント 〜CloudFormationと比較してみた〜
akihisaikeda
3
310
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
190
Featured
See All Featured
BBQ
matthewcrist
89
9.7k
Designing for humans not robots
tammielis
253
25k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
The Pragmatic Product Professional
lauravandoore
35
6.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
We Have a Design System, Now What?
morganepeng
53
7.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Navigating Team Friction
lara
187
15k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Writing Fast Ruby
sferik
628
61k
Transcript
mkr + peco + tmux + ssh ͯͳ id:y_uuki Mackerel
Meetup #10 Tokyo
αʔϏεɾϩʔϧ໊Λ ͠΅Γ͜Έબͭͭ͠ɺ બΜͩϩʔϧͷϗετ܈ʹ ಉ࣌ϩάΠϯ
αʔϏεɾϩʔϧ໊Λ ͠΅Γ͜Έબͭͭ͠ɺ બΜͩϩʔϧͷϗετ܈ʹ ಉ࣌ϩάΠϯ 5ඵ
http://blog.yuuk.io/entry/tmux-ssh-mackerel
mkr + tmux + ssh
$ mkr hosts —service bookmark --role proxy
$ mkr hosts —service bookmark --role proxy | jq -rM
“.[].name"
tssh = tmux + ssh https://github.com/yuuki/opstools/blob/master/tssh
$ tssh $(mkr hosts —service bookmark --role proxy | jq
-rM “.[].name")
$ tssh $(roles bookmark proxy) (zsh functionԽ)
ͯͳʹϩʔϧ͕ͨ͘͞Μʂ 1000+ roles
ϩʔϧ໊֮͑ͯͳ͍
mkr + peco + tmux + ssh
function peco-mkr-roles() { local selected_role=$(mkr services | jq -rM '[.[]
| .name as $name | .roles // [] | map("\($name) \ (.)")] | flatten | .[]' | peco) if [ -n "${selected_role}" ]; then local BUFFER="tssh \`roles "$ {selected_role}"\`" fi zle clear-screen } zle -N peco-mkr-roles
$ mkr services | jq -rM '[.[] | .name as
$name | .roles // [] | map("\($name) \(.)")] | flatten | .[]' | peco
pecoͰ ϩʔϧͷ͠΅Γ͜ΈΛ͔͚ͨޙ $ tssh $(roles bookmark proxy) Λ࣮ߦ
1. Ctrl + w (ҙ) 2. ϩʔϧҰཡදࣔ 3. ͠΅Γ͜Έબ 4.
tssh࣮ߦ
1. Ctrl + w (ҙ) 2. ϩʔϧҰཡදࣔ 3. ͠΅Γ͜Έબ 4.
tssh࣮ߦ 5ඵ
None
Mackerel API ☓ ͍͍ͭͬͯΔ πʔϧ
Mackerel API ☓ ͍͍ͭͬͯΔ πʔϧ ΤϯδχΞΛ ϫΫϫΫͤ͞Δ