ECS Fargateã®taskããDatadogãªã©ã«ãã°ãéãå ´åfluent-bitã®ãµã¤ãã«ã¼ã³ã³ãããç«ã¦ã¦ãawsfirelensã®logDriverã§ãã°ãéãäºãå¤ãã¨æãã¾ãã
ãã®å ´åãã¿ã¹ã¯ã®ä¾åé¢ä¿ãæå®ããªãã¨ãã°ãä¸é¨åããã¼ãã¦ãã¾ãå ´åããããããfluent-bitã³ã³ããã®ãã«ã¹ãã§ãã¯ãããå¿ è¦ãããã¾ãã ãã®æã«fluent-bitã®configãå¤æ´ããå¿ è¦ããã
- S3ãªã©ã«è¨å®ãã¡ã¤ã«ãç½®ããèµ·åæã«èªã¿è¾¼ã (åè)
- ã«ã¹ã¿ã fluent-bitã³ã³ããããã«ããããããå©ç¨ãã
ãªã©ã®æ¹æ³ãåãããäºãå¤ãã§ãããå°ãæ§æçã«too muchã«æããã®ã§ãããã®è¨å®ç¡ãã§ç´ ã®fluent-bitã«å¯¾ãã¦ç°¡æçã«ãã«ã¹ãã§ãã¯ããããå ´åã®ã³ãã³ãããç´¹ä»ãã¾ãã
ss -tlnH | grep -c ':24224\>
fluent-bitããã°ãåãåããã¼ã㯠24224
ã®ããããã®ãã¼ãããªãã¹ã³ããã¦ãããã©ããã確èªã§ããã°OKãã¨ããèãã§ãã
ã¿ã¹ã¯å®ç¾©ã§ã¯ãã®ãããªæãã§æå®ãã¾ãã
"healthCheck": { "command": [ "CMD-SHELL", "ss -tlnH | grep -c ':24224\\>'" ] }