Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

TISMatsuriLT MackerelとZabbix

1,629 views

Published on

2014/12/15 TIS社内で開催されたイベントでのLT資料です。
MackerelとZabbixの簡単な比較資料です。

Published in: Technology
  • Be the first to comment

TISMatsuriLT MackerelとZabbix

  1. 1. Mackerel 䛸 Zabbix TIS ᡓ␎ᢏ⾡䝉䞁䝍䞊 ụ⏣ ኱㍜(@ike_dai) 2014/12/15 ➨4ᅇTIS Matsuri LT
  2. 2. ⮬ᕫ⤂௓ ụ⏣䚷኱㍜ TISᰴᘧ఍♫ ᡓ␎ᢏ⾡䝉䞁䝍䞊 @ike_dai https://www.facebook.com/ikedai Zabbix,AWS,fluentd,Chef,JobScheduler... ྡ๓ ᡤᒓ Twitter Facebook ⯆࿡ AWS䚸VMware┘ど⏝䝥䝷䜾䜲䞁䛄HyClops for Zabbix䛅㛤Ⓨ (http://tech-sketch.github.io/hyclops/jp/) ᢏ⾡ホㄽ♫HP : http://gihyo.jp/book/2014/978-4-7741-6288-1 Amazon : http://www.amazon.co.jp/dp/4774162884 Zabbix-JobScheduler㐃ᦠ⏝䝥䝷䜾䜲䞁䛄HyClopsJM䛅㛤Ⓨ (http://tech-sketch.github.io/hyclops_jm/jp/)
  3. 3. ௒᪥ゝ䛔䛯䛔䛣䛸 ┘ど䝅䝇䝔䝮䜒TPO䜢䜟䛝䜎䛘䛶 Time 䚷┘ど䜢䛹䜜䛠䜙䛔䛾㢖ᗘ䛷䛩䜉䛝䛺䛾䛛䠛 Place䚷䚷䚷䚷䛹䛣䛛䜙┘ど䛩䜛䛾䛛䠛 Occasion䚷 䛹䛖䛔䛳䛯ሙྜ䜢┘ど䛧䛯䛔䛾䛛䠛
  4. 4. Mackerel
  5. 5. Mackerel ┘ど䛾SaaS 䈜https://mackerel.io/䜘䜚ᘬ⏝
  6. 6. Zabbix
  7. 7. Zabbix ┘ど䛾䝋䝣䝖䜴䜵䜰
  8. 8. ┘ど䛾௙⤌䜏
  9. 9. 䛔䛪䜜䜒Agent䝧䞊䝇䛾┘ど
  10. 10. Mackerel Zabbix Goゝㄒ䛷ᐇ⿦ OSS䛸䛧䛶බ㛤 https://github.com/mackerelio/mackerel-agent ᑐᛂ䛧䛶䛔䜛OS Linux Windows MacOSX ὀព: For now, mackerel-agent is guaranteed to run only on CentOS 5/6 and Debian 6/7. Cゝㄒ䛷ᐇ⿦ OSS䛸䛧䛶බ㛤 svn://svn.zabbix.com ᑐᛂ䛧䛶䛔䜛OS Linux Windows MacOSX HP-UX Solaris AIX FreeBSD OpenBSD
  11. 11. Mackerel mackerel-agent https://mackerel.io ෆ㒊᝟ሗ཰㞟 Mackerel API (WebAPI) 䞉䝩䝇䝖Ⓩ㘓 䞉䝯䝖䝸䝑䜽䛾ᢞ✏ 䛺䛹䛺䛹 ᵓᡂ᝟ሗ䛿1᫬㛫䛻1ᅇ ┘ど䝯䝖䝸䜽䝇᝟ሗ䛿 1ศ䛻1ᅇ
  12. 12. Zabbix zabbix-agent ෆ㒊᝟ሗ཰㞟 Zabbix⊂⮬䝥䝻䝁䝖䝹 䜰䜽䝔䜱䝤ᆺ㏻ಙ or 䝟䝑䝅䝤ᆺ㏻ಙ zabbix-server ᵓᡂ᝟ሗ䛿䝻䞊䝺䝧䝹䝕䜱䝇䜹䝞䝸䛷⮬ື᳨▱ ྛ┘ど㛫㝸䛿䛭䜜䛮䜜⮬⏤䛻ᣦᐃྍ⬟
  13. 13. ෆ㒊᝟ሗ཰㞟 ౛䛘䜀 Linux䝃䞊䝞䛾CPU౑⏝⋡䛺䜙 /proc/stat䛾୰㌟䛾᝟ሗ䜢┘ど Mackerel䜒Zabbix䜒䜘䛟ఝ䛶䜛
  14. 14. Mackrelᶆ‽┘ど CPU䚸Memory䚸Disc I/O䚸NW I/O
  15. 15. Zabbixᶆ‽┘ど CPU䚸 Memory䚸 Disc I/O䚸 NW I/O䚸 䝻䜾䚸 䝃䞊䝡䝇䚸 䝥䝻䝉䝇䚸 䝣䜯䜲䝹 䛺䛹䛺䛹 䝔䞁䝥䝺䞊䝖䛸䛧䛶ᐃ⩏ྍ⬟
  16. 16. ┘ど䛾௙⤌䜏 䛹䛳䛱䜒䛔䛔ឤ䛨
  17. 17. ┘ど䛾⟶⌮య⣔
  18. 18. Mackrel Organization->Service->Role->Host Organization Service Service Role Role Role Role
  19. 19. Mackrel Organization->Service->Role->Host 䝩䝇䝖䛾Role䜈䛾๭䜚ᙜ䛶䛿䝎䝑䝅䝳䝪䞊䝗ୖ䛛䜙䜒ྍ⬟ mackerel-agent.conf䛻ᐃ⩏䛧䛶⮬ື๭䜚᣺䜚䜒ྍ⬟ Role䛾᝟ሗ䜢䜎䛸䜑䛶୍ᣓ䛷☜ㄆ
  20. 20. Zabbix HostGroup->Host Zabbix Server HostGroup HostGroup
  21. 21. Zabbix HostGroup->Host Screenᶵ⬟䛷ᚲせ䛺᝟ሗ䜢୍ぴ⾲♧
  22. 22. ┘ど䛾⟶⌮య⣔ Zabbix䛿䛱䜗䛳䛸ᙅ䛔
  23. 23. ᣑᙇᛶ
  24. 24. Mackrel Plugin䜢౑䛘䜀䛹䜣䛺┘ど䜒ྍ⬟ mackerel-plugin-apache2 mackerel-plugin-aws-ec2-cpucredit mackerel-plugin-aws-elb mackerel-plugin-aws-rds mackerel-plugin-elasticsearch mackerel-plugin-haproxy mackerel-plugin-jvm mackerel-plugin-linux mackerel-plugin-memcached mackerel-plugin-mongodb mackerel-plugin-munin mackerel-plugin-mysql mackerel-plugin-nginx mackerel-plugin-php-apc mackerel-plugin-plack mackerel-plugin-postgres mackerel-plugin-redis mackerel-plugin-snmp mackerel-plugin-squid mackerel-plugin-varnish
  25. 25. Mackrel 䛂䜻䞊t䝞䝸䝳䞊t䝍䜲䝮䝇䝍䞁䝥䛃ᙧᘧ䛷 䝯䝖䝸䜽䝇್䜢ฟຊ䛩䜛䝥䝻䜾䝷䝮䜢⤌䜐䛰䛡 Go䛺䜙䝦䝹䝟䞊䝷䜲䝤䝷䝸䛜䛒䜚⡆༢䛻ᐇ⿦ྍ
  26. 26. Mackrel curl䝁䝬䞁䝗䛷䝯䝖䝸䜽䝇䜢㏣ຍ 䝸䜽䜶䝇䝖 # curl -X POST -H "Content-Type: application/json" -H "X-Api-Key:API䜻䞊" https://mackerel.io/api/v0/tsdb -d '[{"hostId":"2fP8G6bXrzJ","name":"api.test.sample","time":1418614973,"value":150}]' 䝺䝇䝫䞁䝇 {"success":true} 䈜䝻䜾┘ど䛾䜘䛖䛺ᩥᏐิ䛾Ⓩ㘓䛿↓⌮䛳䜍䛔
  27. 27. Zabbix 䛔䜝䜣䛺᪉ἲ䛷ᣑᙇྍ⬟ Zabbix Server䛛䜙䝇䜽䝸䝥䝖ᐇ⾜䛧䛶┘ど Zabbix Agent䛛䜙䝇䜽䝸䝥䝖ᐇ⾜䛧䛶┘ど Zabbix Sender䛷እ㒊䛛䜙䝥䝑䝅䝳ᆺ䛷┘ど 䝻䞊䝎䝤䝹䝰䝆䝳䞊䝹䛷┘どᶵ⬟䜢㏣ຍ
  28. 28. ᣑᙇᛶ Zabbix䛾᪉䛜 ᖜᗈ䛔䛡䛹䛱䜗䛳䛸」㞧
  29. 29. እ㒊㐃ᦠ
  30. 30. Mackrel Email,Slack,HipChat,ChatWork➼䜈䛾㏻▱䚸 Webhook䛿ᶆ‽䛷ᑐᛂ
  31. 31. Zabbix 㞀ᐖⓎ⏕᫬䛻ᐇ⾜䛥䛫䜛䝇䜽䝸䝥䝖䜢 ⤌䜑䜀䛹䜣䛺䛸䛣䛷䜒㐃ᦠOK
  32. 32. እ㒊㐃ᦠ Mackerel䛾᪉䛜䛚ᡭ㍍
  33. 33. 䛔䜝䛔䜝୪䜉䛶ẚ㍑䛧䜎䛧䛯䛜 䛹䛳䛱䛜䛔䛔ᝏ䛔䛷䛿䛺䛟 TPO䜢䜟䛝䜎䛘䛶
  34. 34. Mackerel䜒Zabbix䜒 ┘ど䛾䜶䞁䝆䞁䛸䛧䛶ά⏝ྍ⬟ 䜔䜚䜘䛖䛻䜘䛳䛶䛿 䛹䜣䛺㢼䛻䜒䜰䝺䞁䝆ྍ⬟ 㐠⏝䛜䜘䛟䛺䜛䛛ᝏ䛟䛺䜛䛛䛿 ౑䛔᪉ḟ➨䟿
  35. 35. ࿌▱䟿䟿䟿
  36. 36. Tech-Circle 䛳䛶▱䛳䛶䜎䛩䛛䠛
  37. 37. Tech Circle @Nishi-Shinjuku http://techcircle.connpass.com/
  38. 38. ୍⥴䛻ᢏ⾡ⓗ䛺䛣䛸ຮᙉ䛧䛶䜏䛯䛔᪉ 㐠⏝䝇䝍䝑䝣䛻䛬䜂䛤ཧຍୗ䛥䛔䟿䟿䟿 Tech Circle @Nishi-Shinjuku ⯆࿡䛒䜛ே䛿ụ⏣䜎䛷 http://techcircle.connpass.com/

×