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
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
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.3k
Tebiki Engineering Team Deck
tebiki
0
24k
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.6k
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.4k
20260204_Midosuji_Tech
takuyay0ne
1
150
データ民主化のための LLM 活用状況と課題紹介(IVRy の場合)
wxyzzz
2
700
What happened to RubyGems and what can we learn?
mikemcquaid
0
280
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
330
AWS Network Firewall Proxyを触ってみた
nagisa53
1
220
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.3k
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
64
30 Presentation Tips
portentint
PRO
1
210
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
270
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
3k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
51
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
250
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
51
Marketing to machines
jonoalderson
1
4.6k
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.