Upgrade to Pro — share decks privately, control downloads, hide ads and more …

monitoring-tool-gri

 monitoring-tool-gri

Monitoring Casual Talks #6

maebashi

June 12, 2014
Tweet

More Decks by maebashi

Other Decks in Technology

Transcript

  1. ©ɹ2014 Internet Initiative Japan Inc. ϞχλϦϯάπʔϧ GRI •  (ओͱͯ͠)SNMPͰσʔλऩूͯ͠RRD ʹอଘ͢Δ

    – ೖྗݩɾग़ྗઌͱ΋͍Ζ͍ΖมߋՄೳ •  githubͰެ։த – https://github.com/iij/gri
  2. ©ɹ2014 Internet Initiative Japan Inc. ಛ௃ •  खܰʹ࢖͍࢝ΊΒΕΔ – ؆୯ͳΠϯετʔϧ – ࠷খݶͷઃఆ

    •  εέʔϧ͢Δ •  ϓϥάΠϯͰ֦ுՄ •  2001೥ॳ൛ϦϦʔε(ඇެ։)
  3. ©ɹ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
  4. ©ɹ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Λར༻
  5. ©ɹ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