monitoring-tool-gri

 monitoring-tool-gri

Monitoring Casual Talks #6

254c7a2e2055fe9300ea3b419c4b1cfe?s=128

maebashi

June 12, 2014
Tweet

Transcript

  1. ©ɹ2014 Internet Initiative Japan Inc. RubyͰ࡞ͬͨϞχλϦϯάπʔϧ ʹ͍ͭͯ maebashi @ IIJ

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

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

    •  εέʔϧ͢Δ •  ϓϥάΠϯͰ֦ுՄ •  2001೥ॳ൛ϦϦʔε(ඇެ։)
  4. ©ɹ2014 Internet Initiative Japan Inc. εΫϦʔϯγϣοτ

  5. ©ɹ2014 Internet Initiative Japan Inc. ৭ʑͳάϥϑ

  6. ©ɹ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
  7. ©ɹ2014 Internet Initiative Japan Inc. ΞʔΩςΫνϟ

  8. ©ɹ2014 Internet Initiative Japan Inc. جຊܗ(basic mode)

  9. ©ɹ2014 Internet Initiative Japan Inc. ෼ࢄ(distributed mode)

  10. ©ɹ2014 Internet Initiative Japan Inc. ෳ਺୆ΛଋͶΔ

  11. ©ɹ2014 Internet Initiative Japan Inc. ࣮ݧతػೳ

  12. ©ɹ2014 Internet Initiative Japan Inc. fluentd mode

  13. ©ɹ2014 Internet Initiative Japan Inc. gricast

  14. ©ɹ2014 Internet Initiative Japan Inc. gricast

  15. ©ɹ2014 Internet Initiative Japan Inc. InfluxDB΁ͷग़ྗ

  16. ©ɹ2014 Internet Initiative Japan Inc. grispark

  17. ©ɹ2014 Internet Initiative Japan Inc. dockerίϯςφͷϞχλϦϯά

  18. ©ɹ2014 Internet Initiative Japan Inc. dockerίϯςφͷϝτϦΫεऩू IUUQCMPHEPDLFSDPNHBUIFSJOHMYDEPDLFSDPOUBJOFSTNFUSJDT

  19. ©ɹ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Λར༻
  20. ©ɹ2014 Internet Initiative Japan Inc. ߏ੒

  21. ©ɹ2014 Internet Initiative Japan Inc. docker-metricsd

  22. ©ɹ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
  23. ©ɹ2014 Internet Initiative Japan Inc. InfluxDBʹ౤ೖ

  24. ©ɹ2014 Internet Initiative Japan Inc.