Mackerel ãã¼ã ã¨ã³ã¸ãã¢ãªã³ã°ããã¼ã¸ã£ã¼ã® id:onk ã§ãã
Mackerel ã§ã¯æ¢å ±ã®éã OpenTelemetry 対å¿ãé²ãã¦ãã¾ããã
OpenTelemetry ã¨ã¯
OpenTelemetry ã¨ã¯ãã¡ããªãã¯ã»ãã°ã»ãã¬ã¼ã¹ãªã©ã®ãã¬ã¡ããªã¼ãã¼ã¿ãåéããä»»æã®ããã¯ã¨ã³ãã¸ã¨ã¯ã¹ãã¼ããããã¨ãç®æãã¦æ¨æºè¦æ ¼ãå®ãããªã¼ãã³ã½ã¼ã¹ã®ããã¸ã§ã¯ãã§ãã
ãã³ãã¼ã«ä¾åããªãæ¨æºè¦æ ¼ã§ãããæ±ãæ¹ãè¦æ ¼åããã¦ãããããä½ããã®ãã¬ã¡ããªã¼ãã¼ã¿ãåºåãããå ´åã¯ãã¾ã OpenTelemetry ã®å½¢å¼ã§åºåãããããã«ãªãã¤ã¤ããã¾ããMackerel ã plugin ã¨ãã¦æªå¯¾å¿ãªããã«ã¦ã§ã¢ã§ãç°¡åã«ãã¬ã¡ããªã¼ãåééå§ã§ãããã¨ãã¡ããªãã¯ãã¡ã¿ãã¼ã¿ (Attribute) ãæã¤ãã Observability ãããé«ãããããã¨ãããMackerel ã¨ãã¦ã OpenTelemetry ã¸ã®å¯¾å¿ãé²ãã¦ãã¾ããã
Mackerel ããªã OpenTelemetry ã«å¯¾å¿ãã¦ãããã«ã¤ãã¦ã詳ãã㯠ãªã Mackerel 㯠OpenTelemetry ã®ã©ãã«ä»ãã¡ããªãã¯ããµãã¼ãããã®ã ãã覧ãã ããã
Mackerel ã® OpenTelemetry 対å¿ã§ã§ãããã¨
- OTLP ãç¨ããã©ãã«ä»ãã¡ããªãã¯ã®ä¿å
- ã«ã¹ã¿ã ããã·ã¥ãã¼ãã«ã°ã©ã表示
- ã¯ã¨ãªã«ããç£è¦ã¨ã¢ã©ã¼ãçºå ±
ãããã軽ããç´¹ä»ãã¾ãã
OTLP ãç¨ããã©ãã«ä»ãã¡ããªãã¯ã®ä¿å
ã¨ã¼ã¸ã§ã³ããã¯ã©ã¦ãã¤ã³ãã°ã¬ã¼ã·ã§ã³ã§ Mackerel ã«æ稿ãããå¾æ¥ã®ã¡ããªãã¯ï¼ã·ã³ãã«ãª <metric path> <metric value> <metric timestamp>
ã®ããã¹ãå½¢å¼ï¼ã¯ãã¨ã³ããã¤ã³ã api.mackerel.io
ã«éä¿¡ãããä¿åããã¾ããããã«å¯¾ããOpenTelemetry ã«å¯¾å¿ããã©ãã«ä»ãã¡ããªãã¯ã®æ稿ã¯ãOpenTelemetry Protocol (OTLP) ã使ç¨ããæ°ããªã¨ã³ããã¤ã³ã (otlp.mackerelio.com:4317
) ã¸ã®éä¿¡ããã£ã¦ä¿åããã¾ãã詳細ã¯ä»¥ä¸ã®ãã«ããããã°ã¨ã³ããªãåèã«ãã¦ãã ããã
éä¿¡ããã¡ããªãã¯ãåéããããã®è¨è£ ã¯ãOpenTelemetry ã® Registry ããæ¢ããã¨ãã§ãã¾ãããèªèº«ã§è¨è£ ããå ´åã¯ä»¥ä¸ã®ã¨ã³ããªãåèã«ãã¦ãã ããã
ã«ã¹ã¿ã ããã·ã¥ãã¼ãã«ã°ã©ã表示
ä¿åããã©ãã«ä»ãã¡ããªãã¯ã¯ãã«ã¹ã¿ã ããã·ã¥ãã¼ãã«ã°ã©ãã¨ãã¦è¡¨ç¤ºã§ãã¾ãã詳細ã¯åæ²ã®ããã°ã¨ã³ããªã以ä¸ã®ãã«ããåèã«ãã¦ãã ãããPromQL ã©ã¤ã¯ã®ã¯ã¨ãªè¨èªã使ç¨ãã¦ãä¿åããã©ãã«ä»ãã¡ããªãã¯ããèªç±ã«ãã¼ã¿ãåå¾ã§ãã¾ãã
対å¿ãã¦ããæ¼ç®åãé¢æ°ã«ã¤ãã¦ã¯ã以ä¸ã®ãã«ããã¼ã¸ã§ç¢ºèªã§ãã¾ãã
Mackerel ã«ã¯å¼ã使ã£ãã°ã©ãã®çµã¿åããã»å å·¥ã®æ©è½ã以åããåå¨ãã¾ãããã¯ã¨ãªè¨èªã使ããã¨ã§ãããã«æè»ã«ãä»»æã®ãã¼ã¿ãããã·ã¥ãã¼ãã«è¡¨ç¤ºãããã¨ãå¯è½ã§ãã
ã¯ã¨ãªã«ããç£è¦ã¨ã¢ã©ã¼ãçºå ±
ã©ãã«ä»ãã¡ããªãã¯ãå©ç¨ãããã¯ã¨ãªã«ããç£è¦ãã§ã¯ãå¾æ¥ã®ãã¹ãã¡ããªãã¯ããµã¼ãã¹ã¡ããªãã¯ç£è¦ã¨ç°ãªãã¢ããã¼ãã§ã¢ã©ã¼ããçºå ±ã§ãã¾ãããã®æ¹æ³ã§ã¯ãã°ã©ã表示ã«ç¨ããã¯ã¨ãªè¨èªã使ã£ã¦ãè¨ç®ãããå¤ãç£è¦å¯¾è±¡ã¨ãããã¨ãå¯è½ã§ãã
ãã詳細ãªæ å ±ãè¨å®æ¹æ³ã«ã¤ãã¦ã¯ã以ä¸ã®ãã«ããã¼ã¸ããåç §ãã ããã
å¼ã«ããç£è¦ãåæ§ã®æ©è½ãæä¾ãã¦ãã¾ãããã5 åééã®å¶ç´ãããã¾ãããã¯ã¨ãªã«ããç£è¦ã§ã¯ãããçãæ¯åã®ç£è¦ãå¯è½ã¨ãªããã¢ã©ã¼ãã®çºå ±ãããè¿ éã«è¡ããããã«ãªãã¾ãã
ãããªãã¯ãã¼ã¿ã¨ã¯
OpenTelemetry 対å¿ã¯ãç¾å¨ãããªãã¯ãã¼ã¿ã¨ããå½¢ã§æä¾ãã¦ãã¾ãããã¼ã¿çã®æ§è³ªä¸ãæä½æ§ãå®å®æ§ã«å¤å°ã®ã°ãã¤ãããããã¨ããç解ããã ããã°ã¨æãã¾ããåæ段éã§ã®ãå©ç¨ã«ããã¦ã¯ããããã®ç¹ã使ãå§ããä¸ã§ã®å¤§ããªå°é£ã«ã¯ãªããªãããé æ ®ãã¦ããã¾ãã®ã§ããã®æ©ä¼ã«ãã²ãå©ç¨ããã ãããã£ã¼ãããã¯ããå¯ããã ããã
ãªããã©ãã«ä»ãã¡ããªãã¯ã®ã°ã©ã表示ã«ã¯ã«ã¹ã¿ã ããã·ã¥ãã¼ããè¦ãããã¨ãããFree ãã©ã³ã§ã¯æä¾ãã¦ããªããã¨ã«ã注æãã ãããStandard ãã©ã³ã¾ãã¯ãã©ã¤ã¢ã«ãã©ã³ã«ã¦ãå©ç¨ããã ãã¾ããæ¬ãªãªã¼ã¹ã¾ã§ã¯ã©ãã«ä»ãã¡ããªãã¯ã®æ稿ã¨ã¯ã¨ãªã«ããç£è¦ã«ã¤ãã¾ãã¦ã¯è¿½å æéã®çºçã¯ãããã¾ããï¼ãµã¼ãã¼ã¸ã®é度ãªè² è·ãçºçããå ´åã¯ãåå¥ã«ãé£çµ¡ãã¾ãï¼ã
ãå©ç¨æ¹æ³
ç¹å¥ãªãæç¶ãã¯å¿
è¦ããã¾ãããOTLP å½¢å¼ã®ã¡ããªãã¯æ稿㯠otlp.mackerel.com
ã®ã¨ã³ããã¤ã³ãã§åãä»ãã¦ãããã«ã¹ã¿ã ããã·ã¥ãã¼ãã¸ã®ã°ã©ãé
ç½®ãã¯ã¨ãªã«ããç£è¦ã®è¨å®ã¯ Mackerel ã® Web ã³ã³ã½ã¼ã«ããè¡ãã¾ãã
ãã£ã¼ãããã¯æ¹æ³
ãã£ã¼ãããã¯ã¯ãWeb ã³ã³ã½ã¼ã«å³ä¸ã«ããããµãã¼ããã¼ã ã¸é£çµ¡ããéãã¦ãé¡ããã¾ãã
éçºè ã«ä¼ãã«è¡ãããµã¼ãã¹ ã¨ãã¦ãOpenTelemetry Casual Talk ãå§ãå®æçã«ãªãã©ã¤ã³ã¤ãã³ããéå¬ãã¦ãã¾ãã®ã§ãç´æ¥ä¼è©±ãããå ´åã¯ãã²ãæ´»ç¨ãã ããã
ããã§ã¯ãOpenTelemetry 対å¿ãã Mackerel ãã©ãããå©ç¨ãã ããã