å€ãã®éçºè
ã«ãšã£ãŠã補åããªãªãŒã¹ããããã»ã¹ã¯ãç²ç¬ã®åç«ãéçã®ç¬ã®é¡ã«æã蟌ãããšã«äŒŒãŠããŸãã ãã®åŸãäœè
ã®äž»ãªä»äºã¯ãå¶ç¶åœŒãã«é£ãã§ãããã°ããåæããããšã§ãã å®éãã¢ããªã±ãŒã·ã§ã³ã¯ãŠãŒã¶ãŒã®æ¯ã®äžã§ãã®ã©ã€ããã¹ãçµäºããã®ã§ã¯ãªããéå§ããã ãã§ãã ãããŠã圌ã¯éçºãšãã¹ãã®éã«ãéçºè
ã®å©ããå¿
èŠãšããŠããŸãã
ãã®èšäºã§ã¯ã補åã®åäœãšãã®æŠéç°å¢ã芳å¯ããæ¹æ³ãæ€èšããéèŠãªã¡ããªãã¯ãåéããããããæ¶åå¯èœãªåœ¢åŒã§æ瀺ããæ¹æ³ãåŠç¿ããŸãã æç³»åãšã¯äœãããããŠãããã蚺æããã»ã¹ã«ãããŠåœç€Ÿããã³ãµãŒãããŒãã£ã®ã¢ããªã±ãŒã·ã§ã³ãã©ã®ããã«æ¯æŽã§ããããåŠã³ãŸãã ç£èŠããŒã«ãç¹æ®ãªInfluxDBã¹ãã¬ãŒãžãããã³GrafanaããŒã¿èŠèŠåã·ã¹ãã ã®ããŒã±ãããªãŒããŒãšè©³çŽ°ã«ç¥ãåããŸãã
èšäºã®ãããã¿ã€ãã¯ãDotNext 2017ã¢ã¹ã¯ã¯ã®ã¢ãããªãŒã¯ã©ã³ãã«ããã¬ããŒãã§ãã Anatolyã¯æ
å ±ã»ãã¥ãªãã£ã®å°é家ãšããŠæè²ãåããå³ããC ++ Linuxéçºè
ãšããŠéã皌ãã ã ã³ãŒãã£ã³ã°ã«ããããããŠããŠãäœæããããšãã¯ãCïŒã«åãæ¿ããŸããã 圌ã¯.NETã§æåã®ããŒãžã§ã³ããæžããŠããŸãã 圌ã¯ãããžãã¹ã¢ããªã±ãŒã·ã§ã³ãåæ£åããã³ãã©ãŒã«ããã¬ã©ã³ãã·ã¹ãã ã®èšèšãšæ§ç¯ã«åŸäºããŠããŸãã ESãCQRSãããã³DDDã§äŒæ©ããŸãã
衚瀺ããåã«ãã¹ã©ã€ããPDF圢åŒã§ããŠã³ããŒãã§ããŸãã
泚æãã©ãã£ãã¯ïŒ ãã®æçš¿ã«ã¯ãèšå€§ãªæ°ã®åçããããŸãã720p圢åŒã®ãããªã®ã¹ã©ã€ããšã¹ã¯ãªãŒã³ã·ã§ããã§ãã ã¹ã©ã€ãã«ã¯ãèšäºãç解ããããã®éèŠãªã³ãŒããå«ãŸããŠããŸãã
ã¡ããªãã¯ã«ã€ããŠè©±ããŸãã ãªããããã«ã€ããŠæ£ç¢ºã«ïŒ å®éã®ãšãããç§ã®å®è·µã§ã¯å€ãã®ãããžã§ã¯ãã«åºããããã»ãšãã©ã®ããŒã ãå¶äœã§äœãèµ·ãã£ãŠããã®ãããèããŠããªããšããç¶æ³ã«ãã€ãæããŸããã 圌ãã¯è£œåããªãªãŒã¹ããã°ããã§ã圌ãã®æèŠã§ã¯ãããã¯é£ã¶ã å®éã«ã¯ãããã¯ãŸã£ããããã§ã¯ãããŸããããµãŒããŒã¯ãŠãŒã¶ãŒã®æµå
¥ãæå¶ã§ãããã£ã¹ã¯ãæ
éããäœãèµ·ãããããããŸããã ãããŠãã»ãšãã©ã®å Žåã誰ããããçããç¥ããªãã
æ®å¿µãªããããããç§ãã¡ã®éçºè
ã®æåãçºå±ããæ¹æ³ã§ããç§ãã¡ã«ãšã£ãŠã®äž»ãªãã€ã³ãã¯ãã³ãŒããæžãããã»ã¹ã§ãã ããããããã¯çãã補åã®ããäžéšã«ãããªããããæéãšãšãã«ãã®åŸåã¯å€åããŠããŸããããã¯éåžžã«åã°ããããšã§ãã CIãDIãªã©ã®ã²ã©ãèåŸ
çãªèšèã¯ãã§ã«ç¥ã£ãŠããŸãããã²ãã«éããããšã¯ãããããŸããã ç§ãã¡ã¯ãããŒãžã§ã³ç®¡çãã¿ã¹ã¯ç®¡çãèšç»ãããã³ãã¹ãã·ã¹ãã ãçŸä»£ã®ãããžã§ã¯ãã«äžå¯æ¬ ãªéšåã§ãããšããäºå®ã«æ
£ããŠããŸãã
ãã®æ¹åã®æ¬¡ã®å€§ããªã¹ãããã¯ãå±
å¿å°ã®è¯ãããŒã ã®å¢çãè¶ããŠãçŽæ¥ã®ãŠãŒã¶ãŒã®é åã§è¯ãããšãããããšã§ãã ãããŠãããã¯éåžžã«èå³æ·±ãããã»ã¹ã§ããã»ãšãã©ã®å ŽåããŠãŒã¶ãŒã¯èšç»ã©ããã«ããã°ã©ã ã䜿çšããªããããéåžžããããã®å€©æçãªæèãå¯èœãªç±ççãªã¢ã€ãã¢ã«ããã°ã©ã ã¯å¯Ÿå¿ããŠããŸããã ãã®ããã補åã®å®éã®äœ¿çšã芳å¯ãå§ããåŸãç§ãã¡ã¯åžžã«ãçæ°ãšäºæž¬äžå¯èœæ§ã«æºã¡ãã倧ãããŠèå³æ·±ãé
åçãªäžçãçºèŠããŸããã ã©ã³ãã ãªäžåçã®ããã«ãã¹ãŠã®æé©åã䜿çšãããªãã£ããäž»ãªè² æ
ã¯ç§ãã¡ãé Œã£ãŠãããµãŒãã¹ã«ããã£ãŠãããæªæã®ãã管çè
ãã¢ããªã±ãŒã·ã§ã³ã®ãªãœãŒã¹ã人çºçã«å¶éããŠãããããŒããã©ã³ãµãŒããªã¯ãšã¹ããäžåçã«åæ£ããŠãããªã©ã§ããããšãå€æããŸãã èšå€§ãªæ°ã®äºæž¬äžå¯èœãªç¶æ³ãç§ãã¡ã«åœãå¹ã蟌ã¿ãŸãã
ãããã®ã»ãšãã©ã¯ãç²ãããŠãŒã¶ãŒã®ççãªç²Ÿç¥ã«èœã¡çããŸãã æ®ãã¯ãäœãèµ·ãã£ãã®ãçç±ãç解ããããšã¯å®å
šã«äžå¯èœã§ããçµæãèšè¿°ããäžæçãªãã°ã§äœãããŠããŸãã éèŠãªãµãŒãã¹ããªã¢ã«ã¿ã€ã ã§åžžæç£èŠããçŸåšäœãããŠããã®ããç解ããããšã¯ãã©ã¡ãã®åŽã§ãã¯ããã«åªããŠããŸãã
ç£èŠã¯ãåé¡ãšè² è·ã«ã€ããŠç¥ãããã ãã§ãªããåæãšäºæž¬ã®ããã®åªãããã©ãããã©ãŒã ã§ããããŸãã ãããç§ãã¡ã®ããããšã§ãã ç§ãã¡ã¯ãã©ã®ããã«ããããŠã©ãããæå³ã§ãããªãã®çæ®çãªç©ºæ³ã®ãã¹ãŠã絶察ã«å®çŸã§ããããç解ããŸãã
åé¡ã®æ¬è³ªã説æãããšããå€ãã®äººãäŒæ¡ã«ã€ããŠèãããšç¢ºä¿¡ããŠããŸãã å®éããã°ããªã¢ãŒãã§åéããŠåæããçµè«ãå°ãåºãããšãã§ããŸãã ãããŠãããã¯çå®ããããé ããããŸããã å®éããããã¯åæ§ã®åé¡ã解決ããé¢é£ããŒã«ã§ãã æ£ããææ°ã®ãã®ã³ã°ã«é¢ãã玹ä»ãèãããå Žåã¯ãã¬ããŒãã æ§é åãã®ã³ã° ãã«æ³šæããããšããå§ãããŸãã
ãã ãããã®èšäºã§ã¯ç¹ã«ã¡ããªãã¯ã«çŠç¹ãåœãŠãŸãã ã¡ããªãã¯ã¹ãšãã®ã³ã°ã®éãã¯äœã§ããïŒ ãããã£ãŠããã°ã®äž»ãªå
容ã¯ãäžçãããžãã¹ããã»ã¹ãæåŸ
ããšã©ãŒã«é¢ããæ
å ±ã§ãã ããããæ£ãã調çããæ¹æ³ãç¥ã£ãŠããã°ããã®å
容ãç°¡åã«åæã§ããŸãã ãããããã®ã³ã°ã®æè»æ§ãšãã¯ãŒãåé·ã§ãããã«æ害ãªã¿ã¹ã¯ã®å·šå€§ãªå±€ããããŸãã
ããšãã°ãããã»ããµã®è² è·ãåžžã«ç£èŠãããå Žåã ãã¡ããããã®æ
å ±ã1ç§ããšã«ãã°ã«æžã蟌ãã§ããåæã§ããŸãã ããããããã§ç§ãã¡ã¯å€ãã®åé¡ã«çŽé¢ããŠããŸãããã®äž»ãªãã®ã¯ããŒã¿éãšãã®åŠçé床ã§ãã ç£èŠããã«ãŠã³ã¿ã®æ°ã¯ãæ°åïŒããã»ããµãã¡ã¢ãªãGCãèŠæ±ãåçïŒããç°¡åã«å§ãŸããŸãã ãããŠã倧èŠæš¡ãªãããžã§ã¯ãã§ã¯ãäœçŸãã®æ¥œã«å°éããŸãã
200ã®ãã¹ããããã10ç§ããšã«100ã®ã¡ããªãã¯ãååŸãããšããŸãã 1æ¥ã«86,400ç§ããå Žåããã°ã«ã¯æ¯æ¥1å7280äžã®å€ãèšé²ãããŸãã
æ¯ç§æ°åã®ã¡ããªãã¯ãäœã¬ãã«ã®é¡ã®ãªãé¢çœããªãæ
å ±ãšããŒãžãããšããã°ãã©ããªãããæ³åããŠãã ããã 第äžã«ããã¬ãŒã·ã§ã³ã®äººéã®å¯èªæ§ãšããžãã¯ã¯ãã€ã³ãã©ã¹ãã©ã¯ãã£ãã€ãºã®å±±ã§ã¯ãªãããã°ãããŸã æåŸ
ãããŠããŸãã ãããããã®åé¡ã¯ã»ãã³ãã£ãã¯ãã£ã«ã¿ã®å©ããåããŠç°¡åã«è§£æ±ºã§ããŸãã ããããä»ã®ç®çã®ããã«äœæãããããŒã«ãåŠçããããã«çŸåšå¿
èŠãªæ
å ±ã®éã¯åé¡ã§ãã ããã©ãŒãã³ã¹ã®åé¡ã¯ãåŠçã転éãã¹ãã¬ãŒãžãåæã®ãã¹ãŠã®ã¬ãã«ã§çºçããŸãã ãããŠãããã¯çŽç²ãªã«ãŒãã³ã§ããåååçºé»æãå·¥å ŽããŸãã¯ç©äºã®ã€ã³ã¿ãŒããããªã©ãäžé£ãåãã«å€§ããªæ¬²æ±ãæã€ä»ã®å€ãã®é åããããŸããããã§ã¯ãã²ããçãããã¢ããªã¹ãã®äž»åŒµã«ãããšã2020幎ãŸã§ã«å人ã«6ã€ã®ããã€ã¹ããããŸããåžžã«ç£èŠããå¿
èŠããããŸãã
ãããŠã絶察ããªã¥ãŒã ã«ã€ããŠè©±ããŠããå Žåãã¡ããªãã¯ãæäœããããã«å¿
èŠãªããŒã¿ã®ãµã€ãºã¯ãéåžžã®ãã°ã®ãµã€ãºã倧å¹
ã«è¶
ããŠããŸãã ããã¯ãã¹ãŠããã°ãšã¡ããªãã¯ã«åããœãªã¥ãŒã·ã§ã³ã䜿çšããããšã¯äžå¯èœã§ããããšã瀺åããŠããŸãã ãããã£ãŠã人é¡ã¯ã¡ããªãã¯ã¹ãªã©ã®ãã°ããéé¢ãããŠããŸãã ãããŠãç¬èªã®ããŒã«ãã¢ã«ãŽãªãºã ãã¢ãããŒãã䜿çšããŠããã®ããŒã¿ã«é¢ããäœæ¥ã2ã€ã®ç¬ç«ããéšåã«åå²ããŸããã ãããŠãéå»2幎éã®åŸåã瀺ãããã«ã決å®ã¯å®å
šã«æ£ãããã®ã§ããã
ã°ã©ããŸãã¯ããã¥ã¡ã³ãæåã®ããŒã¿ããŒã¹ã®äººæ°ãé«ãŸã£ãŠããããšãèããããšããããªããããã¯ãã¹ãŠãã¡ããªãã¯ããŒã¿ããŒã¹ã®åšãã§èµ·ãã£ãŠããèªå€§åºåãšæ¯èŒããŠãããããã§ãã ã¡ããªãã¯ã¯æç³»åïŒæç³»åïŒã§èšè¿°ãããŸãã æç³»åã¯ãç¹å®ã®æéééã§åäžã®ãœãŒã¹ããååŸãããããã€ãã®å€ã®ã·ãŒã±ã³ã¹ã§ãã ã€ãŸã ãããã¯ãæéå
ã«äœããå®æçã«æž¬å®ããçµæã§ãã ããšãã°ããã®ã°ã©ãã¯ãã¹ãã¬ãŒãžã¢ãã«ããšã«ã°ã«ãŒãåãããããŒã¿ããŒã¹ã®äººæ°ã®å®æçãªæž¬å®çµæãè¡šããŠããŸãã
ãã®ã°ã©ããæç³»åãæãå
žåçãªææšã¯ãæé軞ã®ååšã§ãã ããã§ããå Žåãã»ãšãã©ã®å Žåãã¹ã±ãžã¥ãŒã«ã¯TSã§ãã 確èªããããã«ãä»ã®äŸãèŠãŠã¿ãŸãããã
å¥ã®å
žåçãªäŸã¯ããµã€ããžã®ãã©ãã£ãã¯ã衚瀺ããYandex.Metricaã§ãã
äŸãšããŠããããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ã䜿çšããŠæ§æãããæç³»åã詳ããèŠãŠã¿ãŸãããã
- ãŸããããã¯ãã¡ãããå€ãèªã¿åãããæéã§ãã
- æå³èªäœã ããã€ãã®å€ãååšããå¯èœæ§ããããŸãããã®å Žåãçä¿¡/çºä¿¡ãã±ããã®æ°ã§ãã
- ãŸããã¢ã¯ã·ã§ã³ãçºçããã³ã³ããã¹ãã説æããã¡ã¿æ
å ±ãå€ã«è¿œå ãããšéåžžã«äŸ¿å©ã§ãã ããã«ã¯ã¿ã°ããããŸãã ãããã«ã¯ãããšãã°ã枬å®ãè¡ã£ããã¹ãåããããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ãªã©ãäœã§ãå²ãåœãŠãããšãã§ããŸãã
ãªã¬ãŒã·ã§ãã«ããŒã¿ããŒã¹ãšã®é¡äŒŒæ§ãåŒãåºããšãããã3ã€ã®ãã©ã¡ãŒã¿ãŒãã¹ãŠãããããã¯ãŒã¯ãããŒãã«ã®åœ¢åŒã§è¡šãããšãã§ããŸãã
ãã®å Žåãæéã¯åžžã«ãã®äž»ããŒã§ããã¯ã©ã¹ã¿ãŒã€ã³ããã¯ã¹ã«ãªããŸãã ã¿ã°ã«ã¯ã€ã³ããã¯ã¹ãä»ããããåã䜿çšããããã®äžã«éèšãéåžžã«ããŸãæ§ç¯ããããã£ã«ã¿ãŒãäœæãããŸãã å€èªäœã¯éã€ã³ããã¯ã¹åã§ãã
ããããå
¬éããŒã¿ããŒã¹ãšã¯ç°ãªããTSDBã«ã¯åºæã®æ
å ±ããããŸã-ãã®ããŒã¿ã®æ§è³ªãç¥ã£ãŠãããããä¿¡ããããªãã»ã©ã®æé©åãå¯èœã§ãã ãã®ããããããªãã¯ããŒã¿ããŒã¹ã¯åžžã«ã¯ããã«é
ããåãç¶ããŸãã ããšãã°ãæç³»åããŒã¿ããŒã¹ã®äœæè
ã®éã«ã¯èå³æ·±ãææšãããããã®å©ããåããŠãç¬èªã®åªäœæ§ã®èŠ³ç¹ã§äžç·ã«æž¬å®ãããŸãã1ã€ã®ã¬ã³ãŒããä¿åããã®ã«å¿
èŠãªå¹³åãµã€ãºã§ãã ããã«èŠç©ãããŸãããïŒ
æ¥ä»ãšæå»ã¯éåžžããç§åäœã§ä¿åããã8ãã€ããå æããŸãã ã¿ã°ã¯ç°¡åã«20ãã€ããè¶
ããããšãã§ããããã«ïŒTSDBã«æ ŒçŽãããå€ã®æãäžè¬çãªã¿ã€ãïŒãªã©ã®ããŒã¿ãã£ãŒã«ãã¯8ãã€ãã䜿çšããŸãã ããŸãæŽç·ŽãããŠããªãç¶æ
ã§ä¿åãããšã1ã€ã®ã¬ã³ãŒããçŽ40ãã€ããå æããŸãã ãªãŒããŒã¯äœãèªæ
¢ããŠãããšæããŸããïŒ 2ãã€ãã
ãã¹ãŠã®å€ã2ãã€ãã§ããã¯ããŸãã ãããŠãããã¯å¶éã§ã¯ãªãã1ãã€ãã®é åã§æé«ã®æŠãã§ãã ããã¯ã©ã®ããã«å¯èœã§ããïŒ ããŒã¿ã®çºä¿¡å
ã®è©³çŽ°ãç¥ã£ãŠãããããã¹ãŠ2ãã€ãã«ããæ¹æ³ã¯ãããŸããïŒ
æåã«é ã«æµ®ãã¶ã®ã¯ãæšæºã®å§çž®ã¢ã«ãŽãªãºã ã®äœ¿çšã§ãã ããã¯éåžžãæªãã¢ã€ãã¢ã§ãããªããªãããããã¯ãŸã£ããç°ãªãéã®æ
å ±çšã«äœæããããã®ã§ãããäœæ¥ã«ã¯äœè£ããªãã»ã©å€ãã®ã³ã³ããã¹ããå¿
èŠã ããã§ãã ãŸãã圌ãã¯30-40åé
ãåäœããŸãã
ç§ãã¡ã¯ä»ã®æ¹æ³ã§è¡ããŸãã ã¿ã°ããå§ããŸãããã äžå®ã®ããŒã¿ã¹ããªãŒã ã§ã®ãµã€ãºããŒãã«æžããããšãã§ããŸãã ããã¯ã©ã®ããã«è¡ãããŸããïŒ ã¡ããªãã¯ã®ååã«ã¿ã°ã®ãã¹ãŠã®ããŒãšå€ãæããŠãããã€ãã®ã¹ãã¬ãŒãžã¹ããããååŸããŸãïŒäŸ2ïŒã
ãããã£ãŠãããŒã¿é åããã¹ããŒãé åã«ã¿ã°ã転éããŸãã ãã®ãããã¿ã°ã®å€ãä¹±æ°ã§è¡šãã®ã§ã¯ãªããæçµçãªèŸæžã«åããå¿
èŠããããŸãã æç³»åã®ãã®éšåã¯ãã·ãªãŒãºããšåŒã°ããŸãã ã·ãªãŒãºèªäœã¯ããŒã¿ãä¿åãããæéçã«äžå®ã§ããããããµã€ãºãåçŽã«ç¡èŠã§ããŸãã ãããã£ãŠãã¿ã°ã¯ãŒãã«æããããŸããŸãã
ã·ãªãŒãºãã¹ããŒã¹ãå æããªãå Žåãã¿ã€ã ã¹ã¿ã³ããšå€ããããå æããŸãã æéããå§ããŸãããã æç³»åã§æ©èœãããã¹ãŠã®å§çž®ã¢ã«ãŽãªãºã ã¯ãåããŒã¿ããŒã¹ãšåãåçã«åºã¥ããŠããŸãã ãããã¯ãåãããŒã¿ã®é£ç¶ã¹ããªãŒã ã§ãåäžã®åã§åäœããŸãã éåžžãæéã¯ããç§åäœã§æ£ç¢ºã«ä¿åãããŸãã 8ãã€ãã æéã®çµéãšãšãã«åãå§çž®ããã«ã¯ãDelta-of-Deltaå§çž®ã䜿çšã§ããŸãã ããã¯ãã«ãŠã³ã¿ãŒããã®ããŒã¿ãéåžžå®æçã«å®æçã«ååŸããããšããäºå®ã«äŸåããã¢ã«ãŽãªãºã ã§ãã ããšãã°ã5ç§ããšã ãããã®æéã®éã®ãã«ã¿ãèšç®ããééãèŠã€ããããšãã§ããŸãã æåã®æéãšééãæå®ãããšãåã®æ¬¡ã®å€ãäºæž¬ã§ããŸãã
éåžžãééã¯å€æŽãããªããããæåã®ãã«ã¿ã®å€ãè¶
ãããã«ã¿ãå床èšç®ã§ããŸãã ãããŠéåžžã¯ãŒãã«ãªããŸãã ãã®ãããªç¹å¥ãªãé »ç¹ã«ééããå€ãä¿åããã«ã¯ã1ãããã§ååã§ãïŒ2çªç®ã®ãã«ã¿ã«ãŒãããããããŒãã§ã¯ãããŸããïŒã
ããããããŸãã«ã倧ããªä»®å®ã§ãããšã¯èããªãã§ãã ãããçŸå®ã®äžçã§ã¯ããã§ã¯ãããŸããã Facebookã«ãããšã圌ãã¯ãã®1ã€ã®ãŒããããã«æéã®96ïŒ
ãè©°ã蟌ãããšãã§ããŸããã åœç¶ãå°ããªã¬ã¿ã¬ã¿é³ãæãé³ãªã©ããªããããã®ã¢ã«ãŽãªãºã ããããŸãã
ã«ãŠã³ã¿ãŒã¯ã©ã®ã¿ã€ãã§ãããŸããŸããã ãããå®éã«ã¯ããããã¯ã»ãšãã©åžžã«æµ®åå°æ°ç¹æ°ã§ãã ã¡ã€ã³ããžãã¯ã®ç®çã¯ããã£ãŒã«ãã®ãµã€ãºãå°ããããããšã§ãã
å€ã¯äºæããã«æ£åšããå¯èœæ§ãããããã以åã®ããã«ãã«ã¿ããªãã¯ã¯ããã§ã¯æ©èœããŸããã å¥ã®ææ³ã¯ããã¹ãŠã®å€ã1ã€ã®ãœãŒã¹ã«ç±æ¥ãããšããç¥èã«åºã¥ããŠããŸããã€ãŸãããããã®å€ã®ç²ŸåºŠãšå¯žæ³ã¯åãã§ãã å®éã«ã¯ãããã¯ãã€ããªè¡šçŸãéåžžã«äŒŒãŠããããšãæå³ããŸãã ã€ãŸã è¿é£ã®å€ã䜿çšãããšãéåžžã«å°æ°ã®éèŠãªæåãååŸãããŸãã
å
ã®å€ãããã¯ããã«å°ãªããããæ°ã§ä¿åã§ããŸãã ãããŠãã®é£ã«ãæå°ã®åŽãããŒãã®æ°ãä¿æããŸãã ããããå®éã«ã¯ãã£ãšæ¥œããã§ãã Facebookã®çµ±èšã«ãããšããã¹ãŠã®å€ã®51ïŒ
ã以åã®å€ãšäžèŽããŠããŸãã xorã¯ãŒãã«ãªããŸãã
ãããããæ³åã®ãšããããã®ç¹æ®ãªã±ãŒã¹ãä¿åããã«ã¯1ãããã§ååã§ãã ããã ãã§ã¯ãããŸããããã®äŸã®XORã¯ãæãå¹³å¡ãªäºæž¬åã§ãã çŸåšã®ããŒã¿ã«åçã«é©å¿ãããããã£ãŠéåžžã«é«ã確çã§å€ãäºæž¬ã§ããäºæž¬åãä»ã«ããããŸãããã®çµæãéåžžã«éèŠãªå€åã1ãããã§ããã±ãŒãžåã§ããŸãã
ãããã£ãŠãããŒã¿ãåãééã§å°çããå€æŽãããªãå Žåãããã2ãããã«ããã¯ã§ããŸãã ãã¡ãããããã¯çŸå®ã®äžçã§ã¯èµ·ããããå®éã«ã¯ããŒã¿ãå€æŽããããããFacebookã¯1ã€ã®å€ã«1.37ãã€ããè²»ãããŸãã ãããŠãããã¯ç§ãã¡ãä»èª¿ã¹ããããã®åå§çãªã¢ã«ãŽãªãºã ã®å©ããåããŠããã ãã§ãã
ãããã¯éåžžã«èå³æ·±ãã¢ã«ãŽãªãºã ã§ããäœæéã話ãããããšãã§ããŸããã倩ããå°çã«æ»ã£ãŠãã¢ããªã±ãŒã·ã§ã³ãšãã®ç°å¢ãèŠãŠã¿ãŸãããã
- ãã®ã¢ããªã±ãŒã·ã§ã³ã§ã¯ããŸããã¡ããªãã¯ãéèŠã§ããããã®ããã«ã¡ããªãã¯ãæ©èœããŸãã ã€ãŸããããŒããŠã§ã¢ããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§ãã ãããã®ã¡ããªãã¯ã®ãœãŒã¹ã¯ããã©ãŒãã³ã¹ã«ãŠã³ã¿ãŒã§ãã ãããã«ã¯ãCPUããã£ã¹ã¯å®¹éãã¡ã¢ãªããã.NETãã¬ããŒãžã³ã¬ã¯ã¿ãŒãJITãIISãSignalRãªã©ã®é«ã¬ãã«ãã©ãããã©ãŒã ã§çµããæçšãªæ
å ±ããããããããŸãã
- ããã§ãéåžžãç§ãã¡ãããåããããµãŒãããŒãã£ã®ã³ã³ããŒãã³ãããããŸãã ãããŠããã¹ãŠã®éåžžã®ãµãŒãããŒãã£ãã¬ãŒã€ãŒã«ã¯ãåžžã«æžç®å¯èœãªçµ±èšAPIããããŸãïŒSeqãMongoDBãMS SQL-ããããã¹ãŠã®è£œåã«ã¯ãAPIãçšæãããŠããããããã®APIã䜿çšããŠãã¹ããŒã¿ã¹ãèŠæ±ããããšãã°ãã©ã®ããã«æããŠãããã確èªã§ããŸãã
- ãŸããç§ãã¡ã®æããETWã«ã€ããŠãå¿ããªãã§ãã ãããããã«ã¯å€ãã®èå³æ·±ããã®ããããŸããæåã®æ®µèœã§æ¢ããŠãããã®ãçªç¶èŠã€ãããªãã£ãå Žåã¯ãé£çµ¡ããŠãã ããã
- ãããŠæãéèŠãªãç§ãã¡ãæã£ãŠããæé«ã¬ãã«ã®ã¡ããªãã¯ã¯ããã¡ãããç§ãã¡èªèº«ã®ã¢ããªã±ãŒã·ã§ã³ãããªãã®ããžãã¹ãã¡ã€ã³ã®ã¡ããªãã¯ã§ãã ãŠãŒã¶ãŒãéããããã¥ã¡ã³ãã®ãµã€ãºããã°ã€ã³ããŠãããŠãŒã¶ãŒã®æ°ãããžãã¹ãã©ã³ã¶ã¯ã·ã§ã³ã®å¹³åæéã¯ãã¹ãŠã§ãã
ã芧ã®ãšãããéåžžã«å€ãã®æ
å ±æºããããŸãããŸãããã®æ
å ±ãç°¡åã«åéãéèšãä¿åã§ããç¹å¥ãªãœãããŠã§ã¢ããŒã«ãããããšã¯é©ãããšã§ã¯ãããŸããã ãã®ãããªããŒã«ã®1ã€ãTelegrafãšãŒãžã§ã³ãã§ãã ãã®æšæºçãªé
ä¿¡ã«ã¯ã人æ°ã®ããããŸããŸãªããã°ã©ã ãç£èŠããããã®100以äžã®ãã©ã°ã€ã³ãå«ãŸããŠããŸãã ã·ã¹ãã ã«ãŠã³ã¿ãŒãäžè¬çãªããŒã¿ããŒã¹ãWebãµãŒããŒããã¥ãŒãªã©ã
倧èŠæš¡ãªã³ãã¥ããã£ãæè»ãªèšå®ãåªãããã©ã°ã€ã³ã·ã¹ãã ã«ããããã®ããŒã«ã¯äžå¯æ¬ ãªç£èŠããŒã«ãšãªããŸãã Telegrafã¯ãããŸããŸãªãœãŒã¹ã圢åŒããæ
å ±ãåéã§ããã ãã§ãªããã¯ã©ã€ã¢ã³ãã§æ
å ±ãåŠçããã³éçŽã§ãããããäžå€®ãµãŒããŒã®ããªã¥ãŒã ãšè² è·ã倧å¹
ã«åæžã§ããŸãã
å®éã«Telegrafã®ä»çµã¿ãèŠãŠã¿ãŸãããã å¥åŠãªããšã«ãGrafanaããå§ããŸãããã
ãã®æç¹ãŸã§Grafanaã«ã€ããŠç¹ã«èšåããªãã£ãã®ã§ããšã³ããªã®ãããå€ãã©ãã ãäœãããç解ã§ããŸãã ç¥ã£ãŠããã¹ãããšïŒGrafanaã¯ãTSDBããæç³»åãèŠèŠåã§ããWebããŒã¹ã®ã°ã©ãã£ã«ã«ã€ã³ã¿ãŒãã§ã€ã¹ã§ãã Grafanaã«ã¯ãå€ãã®ç°ãªããã©ã°ã€ã³ãæ¢åã®äººæ°ã®ããã·ã¹ãã çšã®æ¢è£œã®ããã·ã¥ããŒããç°ãªãããŒã¿ãœãŒã¹ãªã©ãå«ããªããžããªãããããã®ãã¡ã®1ã€ã䜿çšããŸãã
Influx Windows Host Overviewãšããããã·ã¥ããŒãããããŸããããã¯ãTelegraf for Windowsã®ããã·ã¥ããŒããäœæããããã«ã®ã¿å¿
èŠã§ãã
ãã®ããã·ã¥ããŒãã¯2ã€ã®éšåã§æ§æãããŸãã1ã€ç®ã¯Telegrafèªäœã®èšå®ã§ãGrafanaãååŸããããã«ã¬ããŒãããå¿
èŠã®ããããã©ãŒãã³ã¹ã«ãŠã³ã¿ãŒãšãã©ãŒãããã瀺ããŸãã
ãããã®èšå®ãã³ããŒããTelegrafèªäœã®èšå®ã«è²Œãä»ããŸãã
ã芧ã®ãšãããèšå®ã¯éåžžã«çŽæçã§ç解ãããããã®ã§ããããã©ãŒãã³ã¹ã«ãŠã³ã¿ãŒã®ååãèšå®ããããŒãªã³ã°æéãæ§æããŸãã
ãã®Telegrafã¯ãã¹ãŠåéããInfluxã«éä¿¡ããŸãã
ããã·ã¥ããŒãã«æ»ããŸãããã ç§ãèšã£ãããã«ãããã¯2ã€ã®éšåã§æ§æãããŠããŸãã次ã«ã2çªç®ã®éšåã«ã€ããŠè©±ããŸãããã 2çªç®ã®éšåã¯äžæã®ããã·ã¥ããŒãçªå·ã§ãã³ããŒããŠããŒã«ã«ã®Grafanaã«ç§»åãããã®äžæã®çªå·ã§19:04ã«ããã·ã¥ããŒããã€ã³ããŒãããŸãããã®æç¹ã§Grafanaã¯ã€ã³ã¿ãŒãããã«ç§»åããŠããã·ã¥ããŒããããŠã³ããŒããã次ã®2çªç®ã«ã·ã¹ãã ã«é¢ããå€ãã®èå³æ·±ãæ
å ±ã衚瀺ãããŸãã
ã¹ã¬ãããããã»ã¹ãCPU䜿çšçãã¡ã¢ãªããã£ã¹ã¯ããããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ãå°çãããã±ããã®æ°ã倱ããããã±ããã®æ°ããã³ãã«ã®æ°ãªã©ã«ã€ããŠã®å®å
šãªæ
å ±ã以äžã«ç€ºããŸãã ã·ã¹ãã å
ã®ãã¹ãŠã®ããã»ã¹ãå
·äœçã«èªçŽããŸããããå®çšŒåã³ãŒãã§ã¯ãäœæ¥ã«å¿
èŠãªããã»ã¹ã®ã¿ã«å¶éããå¿
èŠããããŸãã
å
ã»ã©èšã£ãããã«ãTelegrafã¯GrafanaãšçŽæ¥å¯Ÿè©±ããããããã®éã«InfluxããããŸãã InfluxDBã¯ãçŸæç¹ã§æã人æ°ã®ããæç³»åããŒã¿ããŒã¹ã§ãã
圌女ã¯éåžžã«è¿
éã«ãã¹ãŠã®ç«¶åä»ç€Ÿãè¿œãè¶ããŸããããä»ã¯é
ããªããŸããã ãããŠãç§ãã¡ã®ãã¹ãã¯ããããåœç¶ã®ããšã ãšç€ºããŸããã
Influxã®äŸããTSDBãé垞䜿çšããããŒã¿ã®è©³çŽ°ãšããªã¬ãŒã·ã§ãã«ããŒã¿ããŒã¹ãšã®éããèŠãŠã¿ãŸãããã
- ãŸãããããã¯æ°çŸäžã®ããŒã¿ãã€ã³ããšæ°çŸäžã®ã·ãªãŒãºã§ãã ãªã¬ãŒã·ã§ãã«ããŒã¿ããŒã¹ã«æ°çŸäžã®ããŒãã«ãäœæãããããã«æ°çŸäžã®å€ãå
¥åãå§ãããã®ããã§ã;ããã¯å®éã«ã¯ãã£ãã«èŠãããŸããã Influxã®å Žåãããã¯æšæºçãªç¶æ³ã§ãã
- é »ç¹ãªé²é³ã å®éããŠãŒã¶ãŒãäœãããªããŠããããŒã¿ã¯åžžã«ã¡ããªãã¯ã«æžã蟌ãŸããŸãã ã¡ããªãã¯ã¯ã圌ãäœãããªãããŸã äœãããªããªã©ã®äºå®ã«ã€ããŠæžãããŠããŸãã
- ç¶æ³ã¯èªæžã§ãåãã§ãã åæãããã·ã¥ããŒããã¢ã©ãŒããªã©ã¯ãã¹ãŠäžå®ã®èªã¿åãå€ãå¿
èŠãšãããããéåžžã«å€§ããªè² è·ãããããŸãã
- åãå€ãã åé€ã®äž»ãªçç±ã¯åã«ããŒã¿ã®ãæžè¡°ãã§ããããã倧ããªãã³ãã«ã§çºçããŸãã
- æŽæ°ã¯ã»ãšãã©ãªããç¡èŠã§ããŸãã
CRUDã«é¢ããŠã¯ãInfluxã¯CRã·ã¹ãã ã§ãããããŒã¿ããã°ããäœæããŠèªã¿åãããšãéåžžã«éèŠã§ãã æŽæ°ãšåé€ã¯éåžžã«ãŸãã«ããè¡ããããç¹å®ã®æé©åãããç¶æ³ã§çºçããŸãã
ãå
éšãã§ã¯ãããŒã¿ãç¬èªã®æéæ§é åãããããŒãžããªãŒåœ¢åŒã§ä¿åããŸãã
ããã¯ãæç³»åã«é¢é£ããæ¢ç¥ã®ãã°æ§é åããŒãžããªãŒïŒLSMããªãŒïŒã®æé©åã§ãããå®éã«å®èšŒãããŠããŸãã ããã¯ãé »ç¹ã«æ¿å
¥ãããç¶æ³ã§ã€ã³ããã¯ã¹ã«ããè¿
éãªã¢ã¯ã»ã¹ã®ããã«æé©åãããããŒã¿æ§é ã§ãã ããšãã°ãã»ãšãã©ãã¹ãŠã®ææ°ã®ããŒã¿ããŒã¹ã®ãã©ã³ã¶ã¯ã·ã§ã³ãã°ã§äœ¿çšãããŸãã
Influxã®ãã1ã€ã®å€§ããªå©ç¹ã¯ãSQLã«äŒŒãã¯ãšãªæ§æã§ãã
ãªããããéèŠãªã®ã§ããïŒ åœŒã®ä»¥åã®å察è
ã¯ããã®åŽé¢ã®äžååãªç 究ã§éåžžã«ã²ã©ã眪ãç¯ããŸããã圌ãã¯ç§ãã¡ã«ããã®ãããªåä»ãªæ£èŠè¡šçŸãJSONãããã³èè
ã®ç
çãªç²Ÿç¥ã®ã¯ãšãªããæ§æããããã«é Œã¿ãŸããã äžè¬çã«ã1é±éã®ãã¡ã«ã©ããã«æ¥ãŠãåãåãããèŠãŠãç®ãå°œããããšãç¶æããããšã¯äžå¯èœã§ããã ãããŠãInfluxãäžè¬ã®äººã
ã襲ã£ãã®ã¯éåžžã®ã¯ãšãªæ§æã§ããã
ç§ãã¡ã絶ããããŒã¿ãèç©ããŠãããšããäºå®ã«ã€ããŠè©±ããªãã°ãããªãã¯ç§ãã¡ããããã§äœãããããç解ããå¿
èŠããããŸãã ããã«ã¯ä¿æããªã·ãŒããããŸãïŒå¿
èŠãªãå Žåãäžå®æéåŸã«ããŒã¿ãåé€ããç¹å¥ãªã¡ã«ããºã ïŒã ããããããã¯ããŸãã«ããããµãããã®ã§ãã é£ç¶ã¯ãšãªïŒãããªã¢ã©ã€ãºããã¥ãŒããµãŒããŒäžã®è€éãªéèšã®äºåèšç®ãªã©ïŒãªã©ã®æ©èœã䜿çšãããšãããŠã³ãµã³ããªã³ã°ãªã©ã®èå³æ·±ãã¡ã«ããºã ãåŸãããŸãã äŸãæããŸãã
ããªãã®ãµã€ãã«æ¥ããªã¯ãšã¹ãã®æ°ã枬å®ããããšããŸãããã ã°ã©ãã§ãªã¢ã«ã¿ã€ã ã§ãããå®è¡ãããã¹ãŠã®è² è·ãç£èŠããäœããã®åœ¢ã§ããã«åå¿ããããšãã§ããŸãã 1æ¥åŸããªã¢ã«ã¿ã€ã ã®å€ã¯åé·ã«ãªãã10ç§ééã«éçŽããéçŽïŒæå°ãæ倧ãã«ãŠã³ããç®çã®å€ïŒãèšç®ããåãããŒã¿ã»ãããéåžžã«å°ãããµã€ãºã§ã®ã¿ä¿åã§ããŸãããããã£ãŠãã¯ããã«å°ãªãã¹ããŒã¹ã䜿çšããŸãã 1é±éã§ãæéã1åéã1ãæ-1æéã«å¢ããããã®ããŒã¿ãã¢ãŒã«ã€ãã«æ®ããŠãããšãã°ã1幎éã®ã¢ããªã±ãŒã·ã§ã³ã®ããã©ãŒãã³ã¹ãæ¯èŒã§ããŸãã
ããã©ãŒãã³ã¹ã«ã€ããŠã¯ãæ°å€ã«ã€ããŠèª¬æããåã«ããã®ãããªé«åºŠã«å°éåãããåéã§ã¯ããã¹ãŠãããã©ãŒãã³ã¹ã«çµ¶å¯Ÿã«åœ±é¿ããããšãäºçŽããå¿
èŠããããŸãïŒã¡ããªãã¯ã®æ°ãã¿ã°ã®é£œåãã¯ãšãªã®é »åºŠãInfluxã絶ããåããããã®ããŒã¿ãèªã¿åãåæã¢ã«ãŽãªãºã ã®è€éãã æããããµããã¢ããã€ã¹-åžžã«ããŒã¿ãšç°å¢ãè©ŠããŠã¿ãŠãããªãã«äœãèµ·ããããèŠãŠãã ããã ããã§ããç§ãããã«ã€ããŠè©±ããŠããçç±ãç解ã§ããããã«ãããã€ãã®æ°åã瀺ããããšæããŸãã
1ç§ããã25äžä»¶ã®ã¬ã³ãŒãã«æºè¶³ããååãªæ°ã®ãšããœãŒããããå Žåã6ã³ã¢ãš32 GBã®RAMãæèŒãããã·ã³ã§ååã§ãã . , . Influx- , , .
time series ? , :
TSDB â InfluxDB OpenTSDB. OpenTSDB â TSDB, .
â .
, , , , , . , , . , , .
elastic (, ), .
, . Influx 5 27 :
9 84 , :
MongoDB, 168 Cassandra.
.
, Influx . , . , App Metrics, , WebAPI-, Grafana. , :
, Owin-, , , , , App Metrics:
, , InfluxDB :
, HealthChecks:
HealthChecks â «» , . , .
, , , - :
AppMetrics , , , , .
.
, , , , API-:
, , , , , , . , , â . , , HealthCheckers:
, , â .
, , , , . , ? :
- -, Telegraf , . .
- App Metrics , . Web API, .
- . . , , , body. , , .
- , .
- , , -.
, , -, , . , . , Influx Grafana.
, BenchmarkDotNet. , -: . , , . , , , -, Influx. , , Grafana , , , , .
? , . , influx.exe:
Influx . , benchmarks, .
: , , .
:
:
BenchmarkDotNet, . , â InfluxExporter, :
. :
IExporter, BenchmarkDotNet, , .
MetricsCollector:
, InfluxDBCollector. , .
. , , real time.
, , :
.
InfluxDB LineProtocol, :
, .
Grafana. , Data Source.
, InfluxDB, Influx ( ). Data Source , .
Influx , .
Data Source , Influx . , , :
, . . : , , Grafana .
, , .
, Grafana Telegram. , .
, , Telegram. , . .
.
, .
. , , , . . . , , . , , . .
, , . , , , . .
Dynamic Time Warping. . , «» . , , , , .. : , , , API gateway. API gateway DDoS-. , , . 100% CPU, â - , â - . , , , . . DTW .
, , , . , , , , . , , , , â .
â . .
.
, . , . , .
çŸå®ã«ç®ãåããŠãããŒã«ãèŠãŠã¿ãŸãããã InfluxDataã¯ãã¢ããªã±ãŒã·ã§ã³ã§åœ¹ç«ã€ããã€ãã®ããŒã«ã®ã»ãããæäŸããŸãã ãããã¯ãã¹ãŠTICKãšããäžè¬åã§çµ±äžãããŠãããäºãã«å®å
šã«çµ±åãããŠããŸãã
ç§ãã¡ã¯ãã§ã«Telegrafã«ç²ŸéããŠããŸãã ããã¯ãããŒã¿ãéçŽããŠãµãŒããŒã«éä¿¡ã§ããã¡ããªãã¯ã³ã¬ã¯ã¿ãŒã§ãã
InfluxDBã ååãšããŠãInfluxDBã¯åªããŠããŸãã1ç§éã«100äžä»¶æªæºã®ã¬ã³ãŒããäœæããå Žåãç¡æçã§ååã§ãã ç¡æçã®å¯äžã®éèŠãªå¶éã¯ãã¯ã©ã¹ã¿ãªã³ã°ã®æ¬ åŠã§ãã ãããã£ãŠãã¡ããªãã¯ã·ã¹ãã ã®ãã©ãŒã«ããã¬ã©ã³ã¹ãšä¿¡é Œæ§ãå¿
èŠãªå Žåã¯ãããããã¹ãŠæã£ãææçãå¿
èŠã§ãã Influxã¯ãã¯ã©ãŠããœãªã¥ãŒã·ã§ã³ãšã»ã«ããã¹ããœãªã¥ãŒã·ã§ã³ã®äž¡æ¹ã§è²©å£²ãããŠããŸãã
ã¯ããã°ã©ãã¯ããã®å®¶æå
šå¡ãçµã³ä»ããWeb UIã§ãã 圌ã¯ã²ã©ãã®ã§ãç§ã¯åœŒã«ã€ããŠè©±ããŸããã§ããã ããããæ®å¿µãªãããä»ã®ããŒã«ã¯ãããŸããã Influxã«ã¢ã¯ã»ã¹ããŠãååšããããŒã¿ãäœæãããã¡ããªãã¯ãä¿æããªã·ãŒã確èªããå¿
èŠãããå Žåã¯ããã®äžåèªã圹ç«ã¡ãŸãã ååãšããŠãããã¯é 調ã«çºå±ããŠãããè¿ãå°æ¥ãããã䜿çšããããšããå¯èœã«ãªããšããåžæããããŸãã
Kapacitorã¯ãæ©æ¢°åŠç¿ã䜿çšããŠç°åžžãæ€åºããããŒã«ãšããŠäœçœ®ä»ããããŠããŸãã ããããããã¯å€ãã®ãã°ãšé è³ã«èããã¯ãšãªæ§æãæã£ãŠããŸã;ãããã£ãŠãå®éã«ããã䜿çšããããšã¯ä»åŸæ°å¹Žã§å®å
šã«éçŸå®çã§ããè©Šã¿ããããªãã§ãã ããã æ©æ¢°åŠç¿ã䜿çšããŠç°åžžãå®éã«æ€åºããå¿
èŠãããå Žåã次ã®ãªã³ã¯ãæ©èœããŸãïŒããŒã¿ãåãæ¹æ³ã§Influxã«ä¿åããŸãããç¬èªã®ã¢ããªã±ãŒã·ã§ã³ã䜿çšããŠèªã¿åãããã¡ã€ã³ã«åºã¥ããŠäœæããã¢ãã©ã€ã¶ãŒãšããŠå·¥äœæ©æ¢°çšã®æšæºã©ã€ãã©ãªã䜿çšããŸãåŠç¿ã ããã¯ããŸããããŸãã å¿
èŠã«å¿ããŠããã®ããã«èŠãŠãã ããã
ããã§ãäœããã®åœ¢ã§Influxã®ã©ã€ãã«ãèŠã€ããããšãã§ããã°ãGrafanaã¯ç«¶äºãè¶
ããŠããŸãã åªããèŠèŠåãæå°éã®ãã°ã ãšã³ããªã®ãããå€ããã©ããã«ããèŠèŠçãªã¯ãšãªãšãã£ã¿ãŒã®ååšã ååšãä¿èšŒããæè»ãªãã©ã°ã€ã³ã·ã¹ãã ïŒããŒã¿ãœãŒã¹ã®ããŒããã«ã¹ã¿ã ããã«ããã¹ãŠã®äžè¬çãªããŒãºã«å¯Ÿå¿ããæ¢è£œã®ããã·ã¥ããŒãã ããã¯ãæ€
åã§ã¢ãã¿ãŒãå£ããããªããå¯äžã®ã¬ã¹ãã³ã·ãWebã¢ããªã±ãŒã·ã§ã³ã§ãã äžè¬çã«ãããã§ã¯ä»åŸæ°å¹Žéã§ä»£æ¿æ段ãæ¢ãããšããããŸããã
èå³æ·±ãç¹ã¯ãGrafanaãšInfluxã®çµã¿åããã§ãããã®ã¹ããŒã ã¯éåžžã«èªåŸçã§ãã ããã¯ã©ãããæå³ã§ããïŒ ãããã®ããŒã«ãã€ã³ã¹ããŒã«ããããéçºè
ã«2ã€ã®URLã®ã¿ãæäŸããŸãã 1ã€ç®ã¯Influxããã®ãã®ã§ãéçºè
ã¯å¥ã®æ©èœãå®è£
ããŠããã®URLã«ç¬èªã®ã¡ããªãã¯ãæžãå§ããŸãã Influxã«ã€ããŠäœãç¥ãå¿
èŠã¯ãããŸãããåçåè·¯ããããããInfluxèªäœãããã«é©å¿ããŸãã 2çªç®ã®URLã¯Grafanaããã§ãã éçºè
ã¯ããŒã¿ãInfluxã«èšé²ããGrafanaã«ãã°ã€ã³ããããžã¥ã¢ã«ãšãã£ã¿ãŒã®å©ããåããŠç°¡åãã€è¿
éã«èªåçšã®çŽ æµãªã°ã©ãã衚瀺ããããã«äœæ¥ã®çµæã確èªããŸããããã¯éçºã®å®è·µã«ãããŠéåžžã«éèŠã§ãã ãããã£ãŠãã¢ããªã±ãŒã·ã§ã³ã®éåžžã«å€§ããªã¡ããªãã¯ã«ãã¬ããžããããå°æ¥çã«ã¯éåžžã«ããŸãå©çšã§ããŸãã
æ®å¿µãªãããçŸä»£äžçã®å€ãã®ããŒã«ã«ã¯Linuxãã¡ãŒã¹ãã®ã¢ãããŒããæ¡çšãããŠããŸãã ããã¯ããŸããããã°ã©ã ãLinuxã§éçºããããã®åŸãæ®å·®ã®ååã«ãã£ãŠWindowsã«ç§»æ€ãããããšãæå³ããŸãã åãéåœãç§ãã¡ã®ããŒããŒã«éãããã£ãã Grafanaã¯ç°¡åã§ããŠã§ãã€ã³ã¿ãŒãã§ãŒã¹ãåããŠãããã©ãããå§ããŠãæ§ããŸããããInfluxã¯5幎以äžéçºãããŠãããšããäºå®ã«ãããããããããã6ãæåã«Windowsçšã®é
åžããããåãåããŸããã ïŒ çŸæç¹ã§ã¯ããã®ãããªéºäŒã®å¯äžæ®ã£ãŠããããšã¯ããããã®ããŒã«ãã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³ã§ãããWindowsã·ã¹ãã ãšããŠã®æšæºçãªå±éåäœã§ããWindowsãµãŒãã¹ãšããŠå®è¡ã§ããªãããšã§ãã NS Service Managerãªã©ã®ããŒã«ã¯ããã®åé¡ã®è§£æ±ºã«åœ¹ç«ã¡ãã³ã³ãœãŒã«ã¢ããªã±ãŒã·ã§ã³ã䜿çšããŠãæ¬æ ŒçãªWindowsãµãŒãã¹ãäœæããŸãã å°ãããŠè¯ããŠãŒãã£ãªãã£ãäžæãèŠæ
ãªãã§åäœããŸãã
å¥ã®ã¢ãããŒããèŠãŠã¿ãŸãããã ã ããïŒ
- å³ææ¿å
¥ãšé«éèªã¿åããéèŠã§ãªãå Žå;
- 垯åå¹
ã«éããŠããªãå Žå;
- éæãªããŠã³ãµã³ããªã³ã°ã倢èŠãŠããªãå Žå;
- é£ç¶ã¯ãšãªãã©ã®ããã«åœ¹ç«ã€ãããããªãå Žå
- çµã¿èŸŒã¿ã®çµ±èšãšé«åºŠãªéèšæ©èœãå¿
èŠãªãå Žå;
- å»æ¢ãããåãšã³ããªãå人çã«åé€ããå Žåã
- ããªããããŒã¹ã®ãµã€ãºãæããŠããªãå Žå;
- ã·ã¹ãã ã«é«è² è·ããªãããšã確å®ãªå Žå;
- ãªã¢ã«ã¿ã€ã åæã倱ãæºåãã§ããŠããå Žåã
ãã®åŸãååãšããŠãæšæºããŒã¿ããŒã¹ã䜿çšããŠããããã«ã¡ããªãã¯ãä¿åã§ããŸãã ãããŠãããã¯äžèŠããã»ã©éŠ¬é¹¿ããŠããããã§ã¯ãããŸããããããã®æããåããŠããããŒã ã®æ¢è£œã®å°éç¥èã¯ããããžã§ã¯ãã«æ°ããããŒã«ãå°å
¥ããããã«å¿
èŠãªãªã¹ã¯ãããå€ãè¶
ããããšãããããã§ãã
ç§ã¯ãã®æ¹æ³ãæãå®è¡å¯èœã§ããããšãå€æããå€ãã®ãããžã§ã¯ãã«åºäŒã£ãã®ã§ãæ¥ããããããã«ãããã¯æ®éã®ããšã§ãã
ä»æ¥ãèŠããããã®æïŒTelegrafãInfluxãGrafanaïŒã¯ãããã©ãŒãã³ã¹ãšæè»æ§ã®ç¹ã§æãäœã¬ãã«ã§æé©ãªã·ã¹ãã ã§ãã åœç¶ã誰ãããã®ãããªäœã¬ãã«ãå¿
èŠãšããããã§ã¯ãããŸããã å€ãã®äººã¯ããã«ç
©ããããããªãããããé«ãã¬ãã«ã®ãœãªã¥ãŒã·ã§ã³ãéžæããããšèããŠããŸãã圌ãã¯ãŸããåžå Žã§æºå¡ã§ãããæ©èœããŸãã
ãŸããã¯ã©ãŠãã«ã€ããŠæ¥ãããããå±ã§ãªãå Žåã¯ãææãœãªã¥ãŒã·ã§ã³ããããããããŸãããããªãè¯ããã®ã§ãã
éåžžããããã®é«ã¬ãã«ã®ãœãªã¥ãŒã·ã§ã³ã¯ãã¹ãŠãã¡ããªãã¯ãšãã°ãäžç·ã«äœ¿çšããŠãåãããã·ã¥ããŒããšãã1ã€ã®ã¹ããŒã ã«ããããé¢é£ä»ããããšããŸãã
æ®å¿µãªããã1ã€ã¯ãå§ãã§ããŸããã é«ã¬ãã«ã®ãœãªã¥ãŒã·ã§ã³ã«ã€ããŠè©±ããšãã¯ããããžã§ã¯ããã¯ãŒã¯ããŒããéçºãžã®ã¢ãããŒããå
·äœçã«æ€èšããå¿
èŠããããŸãã InfluxDBãšGrafanaã¯ãåºæ¬çãªã¬ãã«ã®äžçš®ã§ãããçªç¶ä»£æ¿æ段ãæ¢ãããšã«ããå Žåã«ã¬ã€ãããå¿
èŠããããŸãã
ãæ°ã¥ããããããŸããããTSDBã䜿çšããéã®å€§ããªæ©äŒã®1ã€ã¯ãã¢ã«ãŽãªãºã ã«æ
£ããããšã§ãã ã¢ã«ãŽãªãºã ã¯éåžžã«èå³æ·±ããã®ã§ãã
ãã®ãããã¯ãããå°ã詳ããç¥ãããã®ãªã³ã¯ã次ã«ç€ºããŸãã çªç¶ãã¡ãã£ãšããéæ³ããšã¬ã¬ã³ããªãœãªã¥ãŒã·ã§ã³ããŸãã¯ã¯ãŒã«ã§åªããå§çž®ã®ãã¡ã³ãªããå¯ãåã«å€ã«ãã®æå°éãèªãã§ãããç ãããšæããŸãã
ããŒããŒã«é¢ãã詳现æ
å ±ãç¥ãããå Žåã¯ãå
¬åŒãŠã§ããµã€ãã®æšæºæ
å ±ã§ååã§ãã
ãã¡ãããéåžžã«ããæžãããŠãããåžžã«é¢é£ããŠããŸãã
èšäºãèªãã åŸã«è³ªåãããå Žåã¯ãã¡ããªãã¯ã®äœ¿çšæ¹æ³ããããããã°ã©ãã£ãã¯ã«ã€ããŠãæ°è»œã«ãé£çµ¡ãã ããã
å€å
žãèšã£ãããã«ãã楜芳䞻矩ã¯æ
å ±ã®æ¬ åŠã§ããããšããçç±ã§ãç§ã¯ãã®ãããã¯ã«é·ãéå€ãã®ããšã察åŠããŸãã ãããã£ãŠãå人ã¯çŸå®çã«ãªããã¢ããªã±ãŒã·ã§ã³ãäœãããããç¥ã£ãŠãã ããã ãæž
èŽããããšãããããŸããã
åºåã®åã ãããããåç¥ã®ããã«ãäŒè°ãè¡ã£ãŠããŸãã ä»åŸã® .NETäŒè°ã¯DotNext 2018 Piterã§ãã 2018幎4æ22ã23æ¥ããµã³ã¯ãããã«ãã«ã¯ã§éå¬ãããŸãã ã©ããªã¬ããŒãããããŸãã-YouTubeã®ã¢ãŒã«ã€ãã§èŠãããšãã§ããŸãã äŒè°ã§ã¯ãåã¬ããŒãã®åŸãç¹å¥ãªãã£ã¹ã«ãã·ã§ã³ãŸãŒã³ã§è¬æŒè
ãæé«ã®.NETãšãã¹ããŒããšã©ã€ããã£ãããè¡ãããšãã§ããŸãã èŠããã«ãç§ãã¡ã¯ããªããåŸ
ã£ãŠããŸãã