ã¿ãã§ã.
ãã®è¨äºã¯ Mackerelã¢ããã³ãã«ã¬ã³ãã¼2020ã®7æ¥ç®ã®è¨äºã§ã.çããã«ã¨ã£ã¦2020å¹´ã¯ã©ããª1å¹´ã§ãããï¼ããããªãã¨ãå¤åãã1å¹´ã ã£ãããããªãããªã¨æãã¾ãã,èªåãåãæ¹ã9æã«ä¼ç¤¾ãå¤ãã£ã1å¹´ã§ãã.転è·ãã¦å§ããåãçµã¿ã¨ãã¦ç£è¦å¨ãããã,çµç¹å ã®èª²é¡ãã Mackerel ã®å°å ¥ã¨çµç¹å ã®æ¹éã決ããããã¦ããã¾ãã.ãã㪠Mackerel å°å ¥ãã¦ãã£ããã¨ã¨ä»å¾ãã£ã¦ãããããã¨ãæ¸ãã¦ããããã¨æãã¾ã.
- Mackerel ã®å°å ¥åã®ç£è¦
- Mackerel ã®å°å ¥å¾ã«ãã£ããã¨
- ãããããã£ã¦ãããããã¨
- ã¾ã¨ã
Mackerel ã®å°å ¥åã®ç£è¦
Mackerel å°å ¥åã®ç£è¦ã¯ CloudWatch 㧠AWS ãµã¼ãã¹ã®ã¿ãç£è¦ãã¦ãã,EC2 ã Aurora ãªã©ã®ããã©ã¼ãã³ã¹ã«å½±é¿ãããã¨ãããä¸è¨ã®ã¹ã©ã¤ãã®ããã« Slack ã«ã¢ã©ã¼ãéç¥ãã¦ããç¶æ³ã§ãã.
ãã ,ã¢ã©ã¼ããé³´ã£ã¦ã誰ãã©ããªã¢ã¯ã·ã§ã³ãèµ·ããã®ããä¸æã ã£ãã,éçºè ãã¢ã©ã¼ãéç¥ãã£ã³ãã«ã«å ¥ã£ã¦ãããä½ããã¦ãããããããªãã¨ããç¶æ³ã§ãã.ã¾ã,ãµã¼ãã¹æä¾ãã¦ããé¨åã®ä¸ã«ã¯ç£è¦ãéã«åã£ã¦ããªãã¨ãããããã¾ãã.ãã®ãã,CloudWatch ã®ç£è¦ã«å ãã¦å¤é¨ã®ç£è¦ãµã¼ãã¹ãæ¤è¨ãããã¨ã«ãªãã¾ãã.ããã¤ãé¸æè¢ãããã¾ãã,ã³ã¹ããæ±ãã·ã¹ãã ã®ç£è¦ãè³ããç©ãæ¤è¨ãã¦,æçµçã« Mackerel ãå°å ¥ãããã¨ã«ãã¦ãã¾ã.
Mackerel ã®å°å ¥å¾ã«ãã£ããã¨
Mackerel ãå°å ¥ãããã¨ã«ãªã,èªåãåãã¾ã¨ãã¦æ¤è¨¼ã¨çµç¹å±éãã¦ããããã«ããã¤ãã®åãçµã¿ãè¡ã£ãã®ã§ãããç´¹ä»ãã¦ãã¾ã.
1. Mackerel ã§ç£è¦ããç®æã®ç¹å®ã¨ããã¥ã¡ã³ãå
ã¾ãã¯,Mackerel ã§ç£è¦ããç®æã®ç¹å®ãè¡ã£ã¦ããã¾ãã.èªåãæå±ããä¼ç¤¾ã§ã¯ toC åãã®ãµã¼ãã¹ãæä¾ãã¦ããã®ã§ãã,å¤åç£è¦ãã§ãã¦ããªãã¦ãããã証ææ¸ã®æå¹æéãåãã¦ã¢ã¯ã»ã¹ã§ããªãäºè±¡ã転è·ãã¦ããã«èµ·ãã£ã¦ãã¾ãã.ãªã®ã§,ã¦ã¼ã¶ã¼ã«æãè¿ãã¨ããããç£è¦ã®è¨å®ãããã¦ãã¾ãã.ã¾ã,ãããã GitHub ã«ããã¥ã¡ã³ãåãã¾ãã.GitHub ã«ãããã®ã¯ä»å¾éçºè ã«éçºã ãã§ãªãèªåãã¡ãéçºããã·ã¹ãã ã®ç£è¦ã«ä»å ¥ãã¦ãããããã,ç£è¦è¨å®ãå¤æ´ãããå ´åã«éçºè ãããã«ãªã¯ãããã¦ãããèªåãã¬ãã¥ã¼ããã¨ãã£ãããã¼ã«ãã¦ããããã®æå³ã§ãã£ã¦ã¾ã.
2. ã¢ã©ã¼ãçºçæã«éçºè ãæ å½ããã·ã¹ãã ãã¨ã«å¯¾å¿å 容ã¨å¯¾å¿è ã®æè¨
次ã«,éçºè
ãã¨ã§æ
å½ãã¦ããã·ã¹ãã é åãç°ãªãã®ã§ããããã®æ
å½é åã®ã¢ã©ã¼ãã Slack ã§ã¡ã³ã·ã§ã³ã,ã¢ã©ã¼ããã¨ã«ã©ããªå¯¾å¿ãããããå®ç¾©ãã¦éçºè
ã¨èªèåãããè¡ãã¾ãã.Mackerel å°å
¥åã¢ã©ã¼ã㯠Slack ã® @channel
ã§éç¥ããããã®ã®ã¢ã©ã¼ãããªã£ã¦ãã¦ã誰ãã©ããªã¢ã¯ã·ã§ã³ãèµ·ããã¦ããã®ããããããªãç¶æ
ã«ãªã£ã¦ããã®ã§,誰ãã©ããªå¯¾å¿ãããããæããã«ããå¿
è¦ãããã¾ãã.ããã«ãã£ã¦ããã¾ã§çé ã ã£ãéçºè
ãã·ã¹ãã ç£è¦ã®é åã«è¸ã¿è¾¼ãã§ããããããã«ãªã£ãã¨æãã¾ã.
Mackerel ããã®ã¢ã©ã¼ãéç¥ä¾
ã¢ã©ã¼ããã¨ã®å¯¾å¿å 容ã®ä¸é¨æç²
3. é害対å¿ãã³ãã¬ã¼ãã®çå®
ã·ã¹ãã ãã¨ã®ã¢ã©ã¼ãã¨å¯¾å¿è ,対å¿å 容ã決ã¾ã£ãã®ã§çµç¹çã«é害çºçããé害対å¿å®äº,ãã®å¾ã®æ¯ãè¿ãã¾ã§ã®ã¢ã¯ã·ã§ã³ãªã¹ããã¾ã¨ããé害対å¿ãã³ãã¬ã¼ããä½ãã¾ãã.ä¼ç¤¾ã§ã¯ããã¥ã¡ã³ãã esa ã使ã£ã¦ããã®ã§ esa ã«å¯¾å¿å 容ãã¾ã¨ãã¦ãã¾ã.ãã®å®ç¾©ãè¡ã£ã¦é害çºçæã«ã©ãåãã¦,é害対å¿å¾ã©ãåãããæ´çãããã¨ãã§ããã¨æãã¾ã.ãã å¾è¿°ãã¾ãã,ãã³ãã¬ã¼ããå®éã«ä½¿ãæ©ä¼ãæ¥å¸¸æ¥åã§ã¯ã¢ã©ã¼ããé »çºããã,é«è² è·ãªã·ã¹ãã ãä»ã®ã¨ãããªãã®ã§,äºé²è¨ç·´ã§ãã®ãã³ãã¬ã¼ãã使ã£ã¦é害対å¿ãç·´ç¿ãã¦ããããã¨èãã¦ãã¾ã.
é害対å¿ãã³ãã¬ã¼ãã®ä¸é¨æç²
ãããããã£ã¦ãããããã¨
Mackerel ãå°å ¥ã,éç¨ããã«å½ãã£ã¦æ±ºãäºãé害çºçæã®å¯¾å¿ããã¼ã決ã¾ãã¾ããã,ä»å¾ãã£ã¦ãããããã¨ãããã¾ã.
- é害対å¿è¨ç·´
- ãªã³ã³ã¼ã«å¯¾å¿ããã¼ã®æ§ç¯
- Mackerel ãªãã§ã¯ã®æ©è½ã®æ´»ç¨
1. é害対å¿è¨ç·´
1ã¤ç®ã¯é害対å¿è¨ç·´ã§ã.å ¥ç¤¾å½åã¯1ã¢ã«ã¦ã³ãæ¬çªç°å¢ãããªãã£ãã®ã§ããè¾ããããã¾ããã,ç¨éãã¨ã«ã¢ã«ã¦ã³ããåé¢ãã¦ããã¾ã.åé¢ã§ããã¢ã«ã¦ã³ãã§éçºè ã¨é害対å¿è¨ç·´ããã£ã¦ãã,é害対å¿ãã³ãã¬ã¼ãã使ã£ã¦ãããããããã¹ããã¨ã確èªãã¦ããããã¨èãã¦ã¾ã.ä½è«ã§ãã,éçºè ãããäºé²è¨ç·´ãããããã¨é²è¨ãã¦ãããã®ã¯ããããã£ãã§ã.
2. ãªã³ã³ã¼ã«å¯¾å¿ããã¼ã®æ§ç¯
2ã¤ç®ã¯ã·ã¹ãã è¦æ¨¡ã大ãããªã£ã¦ããæã«ãªã³ã³ã¼ã«å¯¾å¿ããã¼ã®æ§ç¯ã§ã.ä»ä»ã¯ã·ã¹ãã è¦æ¨¡çã«ãæ¥ã ã®è² è·çã«ãããã¾ã§å¤§ãããã®ã§ã¯ãªãã®ã§ãªã³ã³ã¼ã«å¯¾å¿ã®æ§ç¯ã¯ã¾ã è¡ã£ã¦ããªãã®ã§ãã,äºæ¥ã®ã¹ã±ã¼ã«ã¨åããã¦ã·ã¹ãã ãããä¿¡é ¼åº¦ã®åä¸ãè¡ãããã«ããªã³ã³ã¼ã«å¯¾å¿ããã¼ãæ§ç¯ãã¦ããããã§ã.
3. Mackerel ãªãã§ã¯ã®æ©è½ã®æ´»ç¨
ä»ã¯ Mackerel Agent ã§æ¨æºå©ç¨å¯è½ãªãµã¼ãã¼ããã®ã¡ããªãã¯ã¨ EC2 ã§ã¯ããã»ã¹ã®ç£è¦ãè¡ã£ã¦ããã»ã©ã§ãã,Mackerel ãªãã§ã¯ã®ãã©ã°ã¤ã³ã®éçºã EventBridge ã¨é£æºãã¦èªå復æ§ã®ä»çµã¿ãä½ã£ã¦ã¿ããã¨ãèãã¦ã¾ã.
ã¾ã¨ã
Mackerel ãå°å ¥ãããã£ããã¨ã¨ãããããã£ã¦ãããããã¨ãæ¸ãã¾ãã.ç£è¦ãã¨ã¼ã¸ã§ã³ãå ¥ãã¦ããå³åº§ã«å§ãããããããã§ä»ã¾ã§è¦ããªãã£ããã®ããã¼ã¿ã¨ãã¦é¢ä¿è å ¨å¡ãè¦ãã¦ããããã«ãªã£ã¦æ¹åãéç¨æ¥åã§ã¢ã¯ã·ã§ã³ããããããªãã¾ãã.ä»å¾ã Mackerel ãæ´»ç¨ãã¦èªç¤¾ã§ã®ããããéç¨ã®ããæ¹ã追æ±ãã¦ããããã§ã.
ç£è¦ã®ãã¼ã«ãããã¦è¦ããªãã£ããã¨ãè¦ãã¦ãããããã§åã£ã¦ãªãã£ãæ¹åãè¦ç´ããã§ãã¦ã
— Sadayoshi Tadað (@tada_infra) 2020å¹´11æ11æ¥
ãã¼ã¿ãéãã¦å¯è¦åãã¦ä¸ç·ã«ãã¼ã ã§è¦ã¦èããæ©ä¼å¤§äºã