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
450
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
480
glusterfs-pmux-en
maebashi
0
41
pmux
maebashi
0
56
Other Decks in Technology
See All in Technology
日経電子版のStoreKit2フルリニューアル
shimastripe
1
150
AI前提のサービス運用ってなんだろう?
ryuichi1208
8
1.4k
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
450
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
2
310
100 名超が参加した日経グループ横断の競技型 AWS 学習イベント「Nikkei Group AWS GameDay」の紹介/mediajaws202411
nikkei_engineer_recruiting
1
170
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
160
プロダクト活用度で見えた真実 ホリゾンタルSaaSでの顧客解像度の高め方
tadaken3
0
210
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
310
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
29
13k
AWS Media Services 最新サービスアップデート 2024
eijikominami
0
200
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
260
強いチームと開発生産性
onk
PRO
36
12k
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Agile that works and the tools we love
rasmusluckow
327
21k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
4 Signs Your Business is Dying
shpigford
180
21k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
What's in a price? How to price your products and services
michaelherold
243
12k
What's new in Ruby 2.0
geeforr
343
31k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Code Reviewing Like a Champion
maltzj
520
39k
Embracing the Ebb and Flow
colly
84
4.5k
Adopting Sorbet at Scale
ufuk
73
9.1k
Faster Mobile Websites
deanohume
305
30k
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.