ä¸ä¼.com ã§ã® ChatOps
ã¯ããã«
ããã«ã¡ã¯ @kentana20 ã§ããä¸ä¼.comã®ä¸ã§èªååãéçºããã¼ã®æ´åã»æ¹åãªã©ãæ å½ãã¦ãã¾ãã
æ¬ã¨ã³ããªã¯ChatOps Advent Calendar 2015ã®14æ¥ç®ã®è¨äºã§ããä¸æ¨æ¥ã¯ @treby ããã
ã¨ããã¿ã¤ãã«ã§ã趣å³ã§ä½æãããBotãç´¹ä»ããã ãã¾ããã
ä»æ¥ã¯ã ä¸ä¼.com ã§ã®ChatOpsæ´»ç¨äºä¾ãããã¤ããç´¹ä»ãããã¨æãã¾ãã
ä¸ä¼ã§ä½¿ã£ã¦ãããã¼ã«
ä¸ä¼ã§ã¯ä»¥ä¸ã®ãã¼ã«ãé£æºãã¦ChatOpsãæ´åãã¦ãã¾ãã æ¯è¼çããããçµã¿åããã ã¨æãã¾ãã
ã«ãã´ãª | ãã¼ã« |
---|---|
Chat | Slack |
Bot | Hubot |
CI | Jenkins |
E2Eãã¹ã | Selenium |
VCS | GitHub Enterprise |
ã¿ã¹ã¯ç®¡ç | Redmine |
ä¸ä¼.com ã§ã®ChatOps
ãªãªã¼ã¹éç¨ã¯ChatOps
æ¥åå¹çåã§ä¸çªããããã±ã¼ã¹ã®1ã¤ã ã¨æãã¾ãããªãªã¼ã¹ã«çµ¡ãéç¨ã¯ChatOpsã§è¡ã£ã¦ãã¾ãã
- ãªãªã¼ã¹ç¨ã®ãã«ãªã¯ã¨ã¹ãä½æ
ä¸ä¼.com ã§ã¯Productionã¸ã®ãªãªã¼ã¹ãè¡ãå ´åã«masterãã©ã³ãããreleaseãã©ã³ãã«ãã«ãªã¯ã¨ã¹ããåºãããªãªã¼ã¹å 容ã®ç¢ºèªãè¡ã£ã¦ããããã®ãã«ãªã¯ä½æãBot+CIã¸ã§ãã§è¡ã£ã¦ãã¾ãã
ãããªæãã§ãã³ãã³ããæãã¦
ãããªæãã®ãã«ãªã¯ãä½ã£ã¦ãã¾ãããã«ãªã¯ä½æã«ã¯ ghq ã gore ãªã©ã§ã馴æã¿ã® motemen ããä½æã® git-pr-release ã¨ããGemãå°ãã«ã¹ã¿ãã¤ãºãã¦ä½¿ã£ã¦ãã¾ãã
ç´è¿ã¾ã§ã¯ããã®å¾ã®ã¿ã°ä½æãªã©ãSlackçµç±ã§è¡ã£ã¦ãã¾ããããç¾å¨ã§ã¯releaseãã©ã³ãã¸ã®mergeãããªã¬ã¼ã«èªååãã¦ããã®ã§ä½¿ããã¨ã¯ãªããªãã¾ããã
ST/Productionã¸ã®E2Eãã¹ããChatOps
ä¸ä¼.comã§ã¯ST/Productionã¸ã®ãããã¤ããã¼ã«Seleniumã«ããE2Eãã¹ããçµã¿è¾¼ãã§ãã¾ãã (E2Eãã¹ãã«ã¤ãã¦ã詳ããã¯âã®ã¹ã©ã¤ããã覧ãã ãã)
ããããSlack+Hubot+Jenkinsãçµã¿åããã¦ããã¤ã§ã誰ã§ãå®è¡ã§ããããã«ãã¦ãã¾ãã
ãããªæãã§ãããã«ã³ã¿ã³ã§ãã
ãã¼ã ã®æä¼ãChatOps
éçºãã¼ã ã¯ãã¤ãªã¼ã¹ã¿ã³ãã¢ããçãªå ±æãæ¯æãã£ã¦ããããã®éç¨ã«ãChatOpsãæ´»ç¨ãã¦ãã¾ãã
- æä¼ç¨ã®ã¨ã³ããªä½æ
ä¸ä¼.com ã§ã¯é±ã«1åã¯å½¢å¼ãå¤ãã¦ãããã¸ã¡ã³ãçãªå ±æäºé ãéçºã¦ãããæ¯ã®ã¢ãããã¼ãã®ç¢ºèªã¨ãã¦30minãããæéãããã¦å®æ½ãã¦ãã¾ãããã®é±1åã®æä¼ã¯Qiita Teamã§äºåã¨ã³ããªãæ¸ãã¦è¡ãã®ã§ãæä¼ã¨ã³ããªã¯Hubotã®cronã使ã£ã¦èªååããä½æããã¨ã³ããªã®ãªã³ã¯ãSlackã«éç¥ãã¦ãã¾ãã
é±ã®ãã¡ãã»ãã®4æ¥éã¯å ±æäºé ã®ã¿ã®ãã¤ãªã¼ã¹ã¿ã³ãã¢ãããªã®ã§ãHubotã使ã£ã¦æä¼éç¥ã¨ãã¡ã·ãªãã¼ã¿ã®ã¢ãµã¤ã³ãè¡ã£ã¦ãã¾ãããã¡ã·ãªãã¼ã¿ã¯ã¦ãããåä½ãªã®ã§ããããã®ã¦ãããã«åã£ãç»åãæ·»ãã¦è³ããã«(?)æä¼ãå§ã¾ãã¾ãã
æ¥ã ã®éçºã®ä¸ã§ãChatOps
å°ãå¤ãã£ãä¾ã¨ãã¦ã¯ãéçºä¸ã®ãã©ã³ããå ±ç¨ç°å¢ã«ãããã¤ããã¨ãã«ãChatOpsãæ´»ç¨ãã¦ãã¾ãã ããã¯Slackä¸ã§
- å ±ç¨ç°å¢ã®çªå·
- ãã©ã³ãå
ãæå®ãã¦ãããã¤ã³ã¼ã«ãããã¨ãæå®ããç°å¢ã«ãæå®ãããã©ã³ãããããã¤ããããã¨ãããã®ã§ä¸»ã«ãã«ãªã¯ã®ã¬ãã¥ã¼æã«ä½¿ã£ããããã¼ã±ãã£ã³ã°ãã«ã¹ã¿ãã¼ãµã¼ãã¹ã¨ãã£ãã¨ã³ã¸ãã¢ä»¥å¤ã®ã¡ã³ãã¼ã«ãã¢ãããã¨ãã«ä½¿ã£ã¦ãã¾ãã
ãããªæãã§ãªãªã¼ã¹åã®ç°å¢ãèªåã®æå ã§ã¯ãªãå ±ç¨ç°å¢ã«æ°è»½ã«ãããã¤ã§ããããã«ãã¦ãã¾ãã
ããããäºä¾
éçºã¦ãããã«ãã£ã¦ã¯ hubot-cron ãå©ç¨ãã¦ãã¦ãããå ã®éç¨ãHubotã¨ã¨ãã«è¡ã£ã¦ããã±ã¼ã¹ãããã®ã§ãç´¹ä»ãã¾ãã
- ä¼æ¥å½çªã®ãªãã¤ã³ã
ä¼æ¥ã®å½çªã¨ããå¶åº¦ãããã®ã§ããããã®å½çªãBotããªãã¤ã³ããã¦ããã¾ãããªãã¨å ããã©ããã¼ã¢ã¤ãã ãã©ããã¼ã«ã©ã¼ãæ·»ãã¦ããããã¨ãããªãã¨ãæ°ã®å©ããä»æ§ã§ãã
- ã¨ãã¨ãã®ãªã話
æä¼ç´å¾ã«æ¥ããå®å ¨ã«ã ãã£ã¶ãBotã§ããã ãã£ã¶ãéãããããããã¾ã¯ãã®Botã¯ãªããªã£ã¦ãã¾ãã¾ãããã
ä»å¾ãããããã¨
ã°ã©ãã¬ãã¼ã
å°ãåã« Kaizen Platform ã® Glide Noteããã ãChatOps + Nightmareã§ã¡ããªã¯ã¹ã°ã©ãã¨BIã¬ãã¼ããSlackã«æããããã«ããã ã¨ããè¨äºãæ¸ããã¦ãã¦ãã¨ã¦ãè¯ãããã«æããã®ã§
- Kibanaã®ããã·ã¥ãã¼ã
- 主è¦å°ç·ã®å¹³åã¬ã¹ãã³ã¹ã¿ã¤ã
ãªã©ãã¡ããªã¯ã¹åãã¦ãæä¼ã®æéã«éç¥ããã¨ãã£ããã¨ãè¡ãããã¨æã£ã¦ãã¾ãã
ææ
ChatOpsã«ã¤ãã¦ãã®1å¹´åãããéçºã»éç¨ããã¦ãã¦æãã®ã¯
- ã使ããã³ãã«ãã£ã¦ã¯ãéçºè ã«è² æ ããããé¢ãããã
ã¨ãããã¨ã§ããèªåã¯ãããã£ãä»çµã¿ã¯ã¨ã¦ã好ããªã®ã§ChatOpsã§éç¨ãæ´åããã¡ãªã®ã§ãããããã¼ã«ä½¿ããªãéçºè ã«ã¨ã£ã¦ã¯Chatã®ã³ãã³ãã¯è¦ãã¥ããã§ãããéç¨ã®æ§è³ªã«ãã£ã¦ã¯ChatOpsã«è¼ããã»ããè¯ããã®ã¨ããã§ãªããã®ãããã¨æãã¾ãã
ãã¨ãã°ãããã»ã©ç´¹ä»ããå ±ç¨ç°å¢ã¸ã®ãããã¤ã«ã¤ãã¦æè¿ãç°¡æçãªWebã¢ããªããè¡ããããã«ããã®ã§ããããã®çµæãæ´»ç¨é »åº¦ãããã«ä¸ãã£ãããã«æãã¾ãã
使ããã³ãã«ãã£ã¦ã¯ChatOpsã¯ä»ã®æ段ã«ç½®ãæããæ¹ãéçºããã¼å ¨ä½ã®æ¹åã«ã¤ãªããã®ããããã¾ããã
ãããã«
ã¾ã ã»ãã«ãäºä¾ã¯ããã¤ãããã¾ããã ä¸ä¼.com ã§ã®ChatOpsäºä¾ãããã¤ãç´¹ä»ãã¾ããã
ãããã¦ãµãããã£ã¦ã¿ãã¨ããããããã£ã¦ãããªãã¨ãããã¨ãåèªèã§ããã¨åæã«
- æ´»ç¨ã§ãã¦ãããã®ã¨ãã¾ãã§ããªããã£ããã®ã®æ£å¸ããã§ãã
- ããããã£ããã¨ãã§ãããããã¨æèã®å¹ ãåºãã
ã¨ãã£ãé¢ã§ã¨ã¦ãæç¨ã§ããã
æ¨å¹´ã¯å¥ã®Advent Calendarã«åå ããã¦ããã ããã®ã§ãããå¹´æ«ã«ãããã£ãã¤ãã³ããããã¨å¹´å ã«è³å ã®å¤§æé¤ããã¦ããæè¦ã«ãªã£ã¦ã¨ã£ã¦ãè¯ãã§ãããããã£ãå ´ãä½ã£ã¦ãã ãã£ã¦ããQiitaãã¤ãã³ããæç«ããã¦ããçãã¾ã«ããã®å ´ãåãã¦æè¬ç³ãä¸ãã¾ãã
æ¥å¹´ãåé²ãç¶ãã¦ãããã«è¯ãç¾å ´ãç®æãã¦è¡ãããã§ããã
ææ¥ã¯ãåå ç»é²ããªãã®ã§æ¬¡å㯠12/16(æ°´) 㧠@q_goma ããã§ãããããããé¡ããã¾ãï¼