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-check-self あるいはmackerel-agentのサブセットを作る方法
Search
karupanerura
August 23, 2017
Programming
130
1
Share
mkr-check-self あるいはmackerel-agentのサブセットを作る方法
Mackerel User Group Meeting Vol.3
karupanerura
August 23, 2017
More Decks by karupanerura
See All by karupanerura
音を出したい
karupanerura
0
78
Perl Meets \w+ あるいは開発を支えるPerl活用の実例集
karupanerura
0
61
log
karupanerura
1
100
Use Perl as Better Shell Script
karupanerura
0
890
GoでParserを書く
karupanerura
4
1.1k
マイ隙間家具OSSたちのご紹介
karupanerura
2
290
Mustache Template 話 2024
karupanerura
0
64
1つの言語を原点に色々な言語を学ぶということ
karupanerura
4
3.4k
Javaの実装をPerlでテストする
karupanerura
0
1.4k
Other Decks in Programming
See All in Programming
AIと共に生きる技術選定 2026
sgash708
0
120
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
JOAI2026 1st solution - heron0519 -
heron0519
0
170
ソースコード→AST→オペコード、の旅を覗いてみる
o0h
PRO
1
120
WebAssembly を読み込むベストプラクティス 2026年春版 / Best Practices for Loading WebAssembly (Spring 2026)
petamoriken
5
1k
Vibe NLP for Applied NLP
inesmontani
PRO
0
590
Explore CoroutineScope
tomoeng11
0
160
Making the RBS Parser Faster
soutaro
0
660
Programming with a DJ Controller — not vibe coding
m_seki
3
780
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
120
ついに来た!本格的なマルチクラウド時代の Google Cloud
maroon1st
0
370
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
140
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
300
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
530
The Spectacular Lies of Maps
axbom
PRO
1
730
The agentic SEO stack - context over prompts
schlessera
0
770
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
190
Prompt Engineering for Job Search
mfonobong
0
290
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
140
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
170
Transcript
mkr-check-self ͋Δ͍mackerel-agentͷαϒηοτΛ࡞Δํ๏ id:karupanerura Mackerel User Group Meeting Vol.3
mkr-check-self ͱ • mackerel-agentͷઃఆΛΈͯ • checkࢹ߲Λ୳ͯ͠ • ·Δͬͱ࣮ߦ • Ҏ্
DEMO
ͳͥ΄͘͠ͳͬͨͷ͔ • GCPͷIaaSͰ͋ΔGoogle Compute Engine • StackdriverͰͷࢹ͕جຊ • ͍Ζ͍Ζ͋ͬͯmackerel͍ͨ͘ͳͬͨ •
େਓͷࣄͰউखʹొͯͨ͠Ί͠ʹ͍͘ • ͔͠͠ݕূ͍ͨ͠
ͭ͘Γ͔ͨ
mackerel-agent • OSSʹͳ͍ͬͯΔ • configͳͲผύοέʔδʹͳͬͯΔ • ͭ·Γ֎෦ϥΠϒϥϦͱͯ͑͠Δʂ • ͬͨʔʂ
ίʔυ
func main() { kingpin.Parse() logger := log.New(colorable.NewColorableStdout(), "", log.Ldate|log.Ltime| log.LUTC)
conf, err := config.LoadConfig(*conffile) if err != nil { logger.Fatal(err) } ok := true for name, config := range conf.CheckPlugins { checker := checks.Checker{Name: name, Config: config} report := checker.Check() logger.Printf("%s: %s\n", statusColordString(report.Status), color.BlueString(checker.String())) if *verbose { logger.Print(report.Message) } ok = ok && report.Status == checks.StatusOK } if !ok { os.Exit(1) } }
Έ͔͍͡ʂ ͓͕ͯΔʂ
ͨͩ͠ • OSSʹͳ͍ͬͯΔͱ͍͑mackerel-agentͷ தͷύοέʔδ • ϥΠϒϥϦͱͯ͑͠Δ͚ΕͲɺϥΠϒϥ Ϧͱͯ͠ར༻͢ΔͨΊʹެ։͞Ε͍ͯΔΘ͚ Ͱͳ͍ • ͏߹ࣗݾͰݸਓπʔϧ͘Β͍Ͱ
͓͠·͍ :D