ã¢ãã¿ãªã³ã°ãµãŒãã¹ Datadogã®è§£èª¬ïŒ
ããã«ã¡ã¯ã@s_tsukaã§ãã
ä»åã¯ã·ã¹ãã ã¢ãã¿ãªã³ã°ïŒç£èŠïŒã¯ã©ãŠããµãŒãã¹ã§ããDatadogã«ã€ããŠè§£èª¬ããŠãããŸãã
ã©ã®ãããªãµãŒãã¹ãªã®ããåããªãæ¹ãå€ããšæããŸãã®ã§ããã£ãããšåºç¯å²ã«æž¡ã£ãŠæ©èœãªã©ã®èª¬æãè¡ããŸãã
Datadogãšã¯
Datadogãšã¯ITã·ã¹ãã ã®ã¢ãã¿ãªã³ã°ã¯ã©ãŠããµãŒãã¹ã§ããå°ãäœæ¥ãè¡ãã ãã§ãèªèº«ã®ITã·ã¹ãã ãã¢ãã¿ãªã³ã°ããããšãã§ããŸãã
é¡äŒŒã®ã¯ã©ãŠããµãŒãã¹ã«mackerelãNew Relicãé¡äŒŒã®ãœãããŠã§ã¢ã«NagiosãMuninãZabbixããããŸãã
ããããéããåŸæãšããé åãéããŸãããã ãããã¯åãã§ããããããã«Datadogã¯ã¢ãã¿ãªã³ã°ããããã®ã¯ã©ãŠããµãŒãã¹ã§ããå ·äœçã«ã¯å¯Ÿè±¡ãšããïŒèªåã®ïŒãµãŒãã®CPUå©çšçãDISKå©çšçãããŒãã¢ãã¬ãŒãžãªã©ãåéãã衚瀺ãããµãŒãã¹ã§ãã
çŸèã¯äžèŠã«åŠãããå®éã«Datadogã®ç»é¢ãèŠãŠã¿ã
ãŸãã¯ä»¥äžã®å ¬åŒã®æŠèŠããŒãžããã£ãšèŠãŠã¿ããšè¯ãããšæããŸãã
DatadogãæäŸãããµãŒãã¹ã®æŠèŠ
è²ã ããã®ã§ããããã°ãïŒç¹ã ã玹ä»ãããšãããäœãšãã£ãŠãã¡ããªã¯ã¹ã®ã°ã©ã衚瀺æ©èœã§ãïŒèªåããã®blogãµãŒããWebã¢ããªãµãŒãã®ç£èŠã«Datadogãå©çšããŠããŸãã§ãããã¯ã²ãšã€èªåã®äŸããèŠãããŸãããã
ãããªæãã§ã·ã¹ãã ã®ç¶æ ãææ¡ããããšãåºæ¥ãŸããäžèšã®ã°ã©ãã¯å®å®ããŠããã®ã§ããŸãé¢çœããªãã°ã©ãã§ãããå®åç°å¢ã§å©çšããã°ããå°ãæå³ã®ããå¯èŠåãã§ããŸãã
ä»ã«ãææããŠããã€ã³ãã©ã®äžèŠ§ïŒãã¹ãã®äžèŠ§ïŒãèŠãç»é¢ã ã£ãããã¿ã°ä»ããããåçš®ã®ãã¹ãããã¹ãããããšããŠããã«ã æ§é ã§äžæã§ããæ©èœããã£ããããŸããïŒç°æ§ã«è² è·ãé«ããã¹ããªã©ãã²ãšç®ã§ãããïŒ
Datadogã®ãã©ã³è§£èª¬
以äžã®ããŒãžã§ç¢ºèªããããšãã§ããŸãã
https://www.datadoghq.com/pricing/
2015幎8æçŸåšãFree, Pro, Enterpriseã®ïŒã€ã®ãã©ã³ãçšæãããŠããŸããFreeã§ã¯5å°ãŸã§ç£èŠããããšãã§ããŸããPro以äžã¯1å°ã«ã€ãã1æ15ãã«ãšçµæ§ãé«ãã§ãã
ã¯ããã¯ã¿ãªãããFreeã䜿ããšæããŸãããFreeãã©ã³ã§ã¯Metric alertã䜿ããŸããã(Proã®ãã©ã€ã¢ã«ã¯äœ¿ãã)
ãã®Metric alertã¯ããªãéèŠã§ããããã¯åéããŠããå€ãäŸãã°CPUå©çšçãèšå®ããéŸå€ãè¶ãããšã¢ã©ãŒãïŒã¡ãŒã«ãSMSãåçš®ãã£ããã¢ããªéç¥ïŒãéä¿¡ããããšãããã®ã§ããåçšç°å¢ã§ã¯å¿ é ã§ãã®ã§ãå人ã¬ãã«ãæ€èšŒæ®µéã§ã¯Freeã§è¯ããŠããåçšå©çšããå Žåã¯Proãã©ã³ã«ããŸãããã
ïŒã¡ãªã¿ã«ç§ã¯å人ã§ã¯ãšãŠã$15/1host/1monthæ¯æããªãã®ã§Freeã§ãã)
retentionãšãããŸãããããã¯åéããã¡ããªã¯ã¹å€ã®ä¿æä¿èšŒæéã§ããäŸãã°Freeã§ã¯1 day retentionãšãããŸããããã¯éå»ïŒæ¥åããèŠãç¡ãããšããèš³ã§ã¯ãªããéå»ïŒæ¥ã¯ä¿æãä¿èšŒãããã©ããã®ä»ã¯ç¡ä¿èšŒãšããã ãã§ããå®éã«Freeãã©ã³ãå©çšããã°ããããŸãããæ®éã«éå»ããŒã¿ãæ®ããŠãããŠãããŸãããã®ãããFreeã§ãæ°æ¥éçšããŠã¿ããšãããªãã«é¢çœãã°ã©ããèŠããããããããããŸããã
Datadogã§Docker containerãã¢ãã¿ãªã³ã°ããå Žåã®æé
ããã»ã©$15/1host/1monthãšèª¬æããŸãããããã®$15ã«ã¯containerã10å°ãŸã§ç£èŠããæéãå«ãŸããŠããŸãã11å°ç®ããã¯+1$ã§ãã
ã€ãŸãããã·ã³Aäžã§docker container 10ååããŠããšãããšæéã¯$15ã§ãã
ïŒå°ãã ãèªä¿¡ãããŸããããå€åïŒå°ç®ã§ãåæ§ã«10 containeråããŠãã+$15ã§åèš$30ããªïŒãšæããŸãã)
競åãµãŒãã¹ãšã®æéæ¯èŒ
競åãµãŒãã¹ãšã®æéãæ¯èŒããŠã¿ãŸãã
Datadog Pro | mackerel Standard | New Relic Pro | |
1ãã¹ãæé(æ) | $15 | çŽ$16(\2000) | $149 |
ããŒã¿ä¿èšŒæé | 1幎 | 1幎 | ç¡é |
New Relicã¯ä»¥åã¯ãã£ãšå®ãã£ããããªã®ã§ãããã©ããªãã§ããããDatadogãšmackerelã¯ã»ãŒåãã®ããã§ããã
å®ã¯æ倧ã¡ããªã¯ã¹æ°ãšãæ©èœãšã现ããéãã¯æ²¢å±±ãããã§ãããmackerelãNew Relicã詳ããç¡ãã®ã§ããã¯çç¥ããŸãã
ãšãããã䜿ãDatadog(å°å ¥æé )
Datadogã¯éåžžã«ç°¡åã«äœ¿ãããšãã§ããŸãã
-
ãŸãã¯ããããsign inããŠãã°ã€ã³ããŸãã https://app.datadoghq.com/account/login
-
æåŸã«Datadog agentãå ¥ãããïŒç£èŠãããïŒç°å¢ãéžãã§ãæ瀺éãã®ã³ãã³ããå©ãã ãã§ããäŸãã°Macãã·ã³ãç£èŠããå Žåã¯ãããªæãã®ã³ãã³ãã衚瀺ãããŠããã¯ãã§ãã
DD_API_KEY=ããªãã®KEY bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/dd-agent/master/packaging/osx/install.sh)"
éåžžã«ç°¡åã§ãããä»ã®Linuxç°å¢ãšãã§ãåºæ¬çã«ã¯åãã§è¡šç€ºãããŠããã³ãã³ããå©ãã ãã§ãã
Agentãåãåºãããmetricãåããã¯ããªã®ã§ãèªèº«ã®Datadogç»é¢äžã§èŠãããšãã§ããŸãã
ã¡ããªãã¯ãæ€çŽ¢ã衚瀺ããŠã¿ã
åç¯ã®éãAgentãå ¥ããã°åŸã¯åæã«å€ãDatadogã«éä¿¡ïŒåéïŒããŠãããŸãã®ã§ããããããã®å€ãèŠãŠã¿ãŸãããã
Metricã¿ããéããŠGraphã§é©åœãªãã®ãéžæããã°äœãããã®å€ãèŠãããšãåºæ¥ãŸãã
ãã®ç»åã®äŸã§ã¯system.load.1ãéžãã§ããŸããã·ã¹ãã ã®ããŒãã¢ãã¬ãŒãžã®ã°ã©ãã衚瀺ããŠããŸãã
ãã®ã°ã©ãã ãšäŸãã°Datadog agentãïŒã€ä»¥äžã®ãã·ã³ã«å ¥ããŠããå Žåããããã®å¹³åå€ã«ãªã£ãŠããŸããŸããç¹å®ã®ç°å¢ã ããã ã£ããç¹å®ã®ãã¹ãã ãèŠããå Žåã¯ãOverãªã©ã®é ç®ãéžæããŠçµããŸãã
ä»ã«ãã1h, 4h, 1day, 2day, 1week, 1month, ä»»æã®æéããªã©ã§ç¯å²éžæã§ãããããŸãããŸãå¹³åå€ã®ä»ã«ãåäœæéãããã®æ倧å€ãæå°å€ã衚瀺ããããSumã£ãããè²ã ã§ããŸãã
Dashboardã®äœæ
äžèšã®Metricã¿ãã¯å®ã¯ã»ãšãã©äœ¿ãå¿ èŠã¯ãããŸãããäºãã°ã©ãã®èšå®ãè²ã ããŠè€æ°ã®ã°ã©ããä¿åããŠããçºã®ããã·ã¥ããŒãç»é¢ãååšããŸãã
åãã«æãããã®ç»åã§ãã
ãã®ç»é¢ã¯Dashboardsã¿ãããäœæããããšãã§ããŸãã
äžèšã®èªåã®ããã·ã¥ããŒãã¯ããŸãé¢çœãç¡ãã§ãããè²ã ãªã°ã©ãã®ã¿ã€ããããã工倫次第ã§ã¯èŠããããé¢çœãã䜿ããããããã·ã¥ããŒããäœããŸãã
äŸãã°å°ãã ãäŸãèŒããŸããš
ãã®ãããªç©ã¿äžãæ£ã°ã©ãã
ã°ã©ãã®ã¿ã€ããTimeseriesã ãã§ãªããHeatmap, Distribution, Toplist, Change, Hostmapãªã©æ§ã ã§ãã
ããã¯Toplistã®äŸã§ãã
CloudFrontã®distributionããšã®ïŒåäœæéãããã®ïŒãªã¯ãšã¹ãæ°ãªã®ã§ãããe2hswlf3bca2hqãäžçªé«ãããšãããããŸãããã°ã©ãã®è²ãå€ãããããããŸãã
ãããã¯JSONã§å®çŸ©ãããŠããã®ã§ã³ãããç°¡åã§ãããŸãJSONã®å®çŸ©éšåã§ã¯ã¡ãã£ãšããèšç®åŒãæžããã®ã§åäœãªã©è²ã å€æŽããããšãã§ããŸãã
ã€ãã³ããã°ã©ãäžã«åæ ããããšãã§ããŸããäŸãã°ä»¥äžã®ããã«ããããã€ããšããããŒã¯ãŒããç»é²ããŠ
å¥ã®Eventsç»é¢ïŒãã£ããç»é¢çãªãã®ã§ãïŒã§ãããã€ãšçºèšãããšã»ã»ã»
ãã®ããã«ãã³ã¯ã®ç·ãä»ããŸããå¿ ããããã€ãè¡ããšãã«Eventsç»é¢ã«æåãèªåã§ãããã€ãšçºèšããŠããããšã§ãã³ã¯ã®ç·ãåºãŠäŸ¿å©ã§ããã©ãããã·ã¹ãã ãå€ããã ãããïŒè¯ããªã£ããã»æªããªã£ããïŒãããããŸãã
åçš®ã·ã¹ãã ãšã®é£æºãAWSã®äŸ
Datadogã«ã¯AWSã·ã¹ãã ãšã®é£æºæ©èœãªã©ãä»ããŠããŠããããã䜿ããšä»ã·ã¹ãã ã®å€ãªã©ãååŸã»è¡šç€ºããããšãåºæ¥ãŸãã
é£æºæ©èœã®çš®é¡ã¯ä»¥äžã§ç¢ºèªããããšãã§ããŸãã
https://www.datadoghq.com/product/integrations/
äŸãã°AWSã®CPU CreditãELBã®ã¢ã¯ã»ã¹æ°ãªã©ãæ®éã¯ååŸã§ããªãå€ã§ãèŠãããšãåºæ¥ãŸãã
èªåã§ã¯ãã®blogãåããããã€ãã®éçãªãœãŒã¹ãAmazon Cloud Frontã§é ä¿¡ããŠããŸããCloud Frontã¯ãããŒãžããµãŒãã¹ãªã®ã§Datadog agentãã€ã³ã¹ããŒã«ããããšã¯ã§ããŸãããããã®ããã«Integrationæ©èœã䜿ãã°èŠãããšãã§ããããã«ãªããŸãã
ãã£ããç³»ã®é£æºæ©èœã¯ãããã®ãã£ãããžã®éç¥ãªã©ã§ããã·ã¹ãã ç³»ã®é£æºæ©èœã¯ãããã®ã·ã¹ãã ã®å€ãDatadogã«åã蟌ããã®ã§ããNew Relicãšãã®ããŒã¿ãåã蟌ããããã§ããã
ã¢ã©ãŒãèšå®
ïŒã¢ã©ãŒãèšå®ã¯Freeã§ã¯äœ¿ããŸããïŒ
ã¢ã©ãŒãã¯èšå®ããã¡ããªãã¯ããããå€ãè¶ ãããšäœããã®ã¢ã¯ã·ã§ã³ïŒã¡ãŒã«éç¥ãSMSéä¿¡ããã£ããéç¥ïŒãè¡ããã®ã§ãã
èªåã¯Pro TrialæéçµäºããŠããã®ã§ããã¢ã©ãŒãã¯äœ¿ããªãã®ã§ãèŠãã§ããŸãããããšããããå²ãšç°¡åã«èšå®ã§ãããšèŠããŠããã°è¯ãããšæããŸãã
Zabbixçµéšãšã®æ¯èŒ
ä»äºã§Zabbixãå©çšããããšããããŸããããã¡ããšæ¯ã¹ããšä»¥äžã®ãããªå©ç¹ããããšæããŸãã
- 管çç»é¢ãæ Œæ®µã«ç¶ºéº
- 䜿ããããI/Fãå°ãªãèšå®é ç®ã§ããããããšãå®çŸã§ããã®ã§ç°¡å
- å å®ããŠããã°ã©ãæ©èœ
- å å®ããŠããé£æºæ©èœ
- èªåã§ç£èŠã·ã¹ãã ãç£èŠããªããŠè¯ãïŒZabbixãèªåã§çšæãããšãã®Zabbixãç£èŠããªããŠã¯ãªããªãïŒ
- Agentããæ軜
ãŸããDatadogé«ããã§ããã©ãã»ã»ã»å©ç¹ã¯å€ãããšæããŸããZabbixã¯æ¬èªã¿ãªããåãããåãããã»ã»ã»ã€ã¶ãããŠãŸããããDatadogã¯é©åœã«äœ¿ã£ãŠããã ãã§ãããããšé ã«å ¥ã£ãŠããŸããã
ãŸãšããšéæ
Datadogã®èª¬æãæ©èœèª¬æãªã©ãè¡ããŸãããèªåã¯å人ãšä»äºã§Datadogãå©çšããŠããŸãããããªãè¯ããµãŒãã¹ã ãšæããŸããééçã«äœè£ãããã®ã§ããã°Zabbixãªã©ãããDatadogãéžæãããšæããŸãã
æéã¯é«ãã§ãããã¹ã±ãŒã«ã¢ãŠããããã³ã«ãã¹ããå¢ãããããªç°å¢ã ãšå©çšæã¯ã°ãã«ãªããªããšæããŸããã§ãããAmazon ECSã®ãããª(Docker)ã³ã³ããã¯ã©ã¹ã¿æè¡ã䜿ãã°å©çšæã¯æãããããããããŸãããïŒhostãå¢ãããšãã¡ã§ããã1hostäž10containerãŸã§ãªãOKãªã®ã§ïŒ
話ããããŸããããDatadogããªãè¯ããµãŒãã¹ã ãšæããŸãã®ã§ãã¿ãªããã䜿ã£ãŠã¿ãŠã¯ãããã§ããããïŒ