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
monitoring-tool-gri
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
maebashi
June 12, 2014
Technology
1
540
monitoring-tool-gri
Monitoring Casual Talks #6
maebashi
June 12, 2014
Tweet
Share
More Decks by maebashi
See All by maebashi
docker-metrics-grafana
maebashi
2
840k
glusterfs-pmux
maebashi
2
600
glusterfs-pmux-en
maebashi
0
82
pmux
maebashi
0
94
Other Decks in Technology
See All in Technology
We Built for Predictability; The Workloads Didn’t Care
stahnma
0
140
StrandsとNeptuneを使ってナレッジグラフを構築する
yakumo
1
100
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3.8k
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.3k
What happened to RubyGems and what can we learn?
mikemcquaid
0
280
Tebiki Engineering Team Deck
tebiki
0
24k
プロポーザルに込める段取り八分
shoheimitani
1
190
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
240
Greatest Disaster Hits in Web Performance
guaca
0
200
Ruby版 JSXのRuxが気になる
sansantech
PRO
0
150
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
SREのプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
630
Featured
See All Featured
Building Applications with DynamoDB
mza
96
6.9k
How to make the Groovebox
asonas
2
1.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
My Coaching Mixtape
mlcsv
0
47
Ruling the World: When Life Gets Gamed
codingconduct
0
140
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Building Flexible Design Systems
yeseniaperezcruz
330
40k
How to train your dragon (web standard)
notwaldorf
97
6.5k
Amusing Abliteration
ianozsvald
0
98
Transcript
©ɹ2014 Internet Initiative Japan Inc. RubyͰ࡞ͬͨϞχλϦϯάπʔϧ ʹ͍ͭͯ maebashi @ IIJ
©ɹ2014 Internet Initiative Japan Inc. ϞχλϦϯάπʔϧ GRI • (ओͱͯ͠)SNMPͰσʔλऩूͯ͠RRD ʹอଘ͢Δ
– ೖྗݩɾग़ྗઌͱ͍Ζ͍ΖมߋՄೳ • githubͰެ։த – https://github.com/iij/gri
©ɹ2014 Internet Initiative Japan Inc. ಛ • खܰʹ͍࢝ΊΒΕΔ – ؆୯ͳΠϯετʔϧ – ࠷খݶͷઃఆ
• εέʔϧ͢Δ • ϓϥάΠϯͰ֦ுՄ • 2001ॳ൛ϦϦʔε(ඇެ։)
©ɹ2014 Internet Initiative Japan Inc. εΫϦʔϯγϣοτ
©ɹ2014 Internet Initiative Japan Inc. ৭ʑͳάϥϑ
©ɹ2014 Internet Initiative Japan Inc. ઃఆ • શମઃఆgri.conf – ͳͯ͘ಈ͘ •
λʔήοτϗετͷϦετgritab – ػछʹԠͯ͡औಘ͢ΔσʔλΛࣗಈܾఆ $ cat /usr/local/gri/gritab host0.example.com ver=2c community=public rt0.example.com ver=2c community=public
©ɹ2014 Internet Initiative Japan Inc. ΞʔΩςΫνϟ
©ɹ2014 Internet Initiative Japan Inc. جຊܗ(basic mode)
©ɹ2014 Internet Initiative Japan Inc. ࢄ(distributed mode)
©ɹ2014 Internet Initiative Japan Inc. ෳΛଋͶΔ
©ɹ2014 Internet Initiative Japan Inc. ࣮ݧతػೳ
©ɹ2014 Internet Initiative Japan Inc. fluentd mode
©ɹ2014 Internet Initiative Japan Inc. gricast
©ɹ2014 Internet Initiative Japan Inc. gricast
©ɹ2014 Internet Initiative Japan Inc. InfluxDBͷग़ྗ
©ɹ2014 Internet Initiative Japan Inc. grispark
©ɹ2014 Internet Initiative Japan Inc. dockerίϯςφͷϞχλϦϯά
©ɹ2014 Internet Initiative Japan Inc. dockerίϯςφͷϝτϦΫεऩू IUUQCMPHEPDLFSDPNHBUIFSJOHMYDEPDLFSDPOUBJOFSTNFUSJDT
©ɹ2014 Internet Initiative Japan Inc. docker-metricsd • ֤dockerϗετʹৗற • dockerίϯςφͷใΛऩूͯ͠ฦ͢
– cgroup • memory, cpuacct – /proc/net/dev • ίϯςφͷnamespaceʹೖΓࠐΜͰऔಘ • githubͰެ։த – https://github.com/maebashi/docker-metricsd – GoݴޠͰهड़ɺdockerͷlibcontainerΛར༻
©ɹ2014 Internet Initiative Japan Inc. ߏ
©ɹ2014 Internet Initiative Japan Inc. docker-metricsd
©ɹ2014 Internet Initiative Japan Inc. ઃఆ • ऩूtypeΛsnmp,dockerʹͯ͠ɺ docker-metricsdͷport൪߸Λࢦఆ •
InfluxDB writerΛՃ (gritab) host.example.com ver=2c community=public \ type=snmp,docker docker-port=12375 (crontab) /5 * * * * admin /usr/bin/gri --add-writer influxdb
©ɹ2014 Internet Initiative Japan Inc. InfluxDBʹೖ
©ɹ2014 Internet Initiative Japan Inc.