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
9.1k
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)
AIスパコン「さくらONE」のLLM学習ベンチマークによる性能評価 / SAKURAONE LLM Training Benchmarking
yuukit
2
660
とあるSREの博士「過程」 / A Certain SRE’s Ph.D. Journey
yuukit
11
4.3k
eBPFを用いたAIネットワーク監視システム論文の実装 / eBPF Japan Meetup #4
yuukit
3
1.1k
クラウドのテレメトリーシステム研究動向2025年
yuukit
4
1.1k
博士論文公聴会: Scaling Telemetry Workloads in Cloud Applications: Techniques for Instrumentation, Storage, and Mining / PhD Defence
yuukit
1
250
博士学位論文予備審査 / Scaling Telemetry Workloads in Cloud Applications: Techniques for Instrumentation, Storage, and Mining
yuukit
1
2.1k
MetricSifter:クラウドアプリケーションにおける故障箇所特定の効率化のための多変量時系列データの特徴量削減 / FIT 2024
yuukit
2
300
工学としてのSRE再訪 / Revisiting SRE as Engineering
yuukit
19
14k
Cloudless Computingの論文紹介
yuukit
2
590
Other Decks in Programming
See All in Programming
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
390
After go func(): Goroutines Through a Beginner’s Eye
97vaibhav
0
230
Pythonスレッドとは結局何なのか? CPython実装から見るNoGIL時代の変化
curekoshimizu
4
1.3k
猫と暮らすネットワークカメラ生活🐈 ~Vision frameworkでペットを愛でよう~ / iOSDC Japan 2025
yutailang0119
0
220
AIエージェント時代における TypeScriptスキーマ駆動開発の新たな役割
bicstone
4
1.5k
Advance Your Career with Open Source
ivargrimstad
0
340
タスクの特性や不確実性に応じた最適な作業スタイルの選択(ペアプロ・モブプロ・ソロプロ)と実践 / Optimal Work Style Selection: Pair, Mob, or Solo Programming.
honyanya
3
140
ИИ-Агенты в каждый дом – Алексей Порядин, PythoNN
sobolevn
0
150
プログラミングどうやる? ~テスト駆動開発から学ぶ達人の型~
a_okui
0
190
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
140
開発者への寄付をアプリ内課金として実装する時の気の使いどころ
ski
0
350
ててべんす独演会〜Flowの全てを語ります〜
tbsten
1
220
Featured
See All Featured
How GitHub (no longer) Works
holman
315
140k
Thoughts on Productivity
jonyablonski
70
4.9k
The Cost Of JavaScript in 2023
addyosmani
53
9k
Code Reviewing Like a Champion
maltzj
525
40k
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
19
1.2k
Code Review Best Practice
trishagee
72
19k
The World Runs on Bad Software
bkeepers
PRO
71
11k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Designing for Performance
lara
610
69k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
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 ☓ ͍͍ͭͬͯΔ πʔϧ ΤϯδχΞΛ ϫΫϫΫͤ͞Δ