Mackerelã¯CloudNative Daysã«ãã¼ã«ã¹ãã³ãµã¼ãã¦ããããã®ç¹«ããã§ãMackerelã®éç¼ï©ã®ä¸å¡ã§ãããç§ã¯ãCloudNative Daysã®ãªãã¶ã¼ãããªãã£ãã¼ã ã«åå ãã¦ãããå æ¥CloudNative Days Winter 2024 (CNDW2024)ãéå¬ããããããã§ã®Mackerelã®ä½¿ã²æ¹ãç´¹ä»ããããCNDW2024ãè½è¬ããäºã¯CloudNative Days Winter 2024 #CNDW2024 - c4se記:さっちゃんですよ☆ã«æ¸ããã
ãªãã¶ã¼ãããªãã£ãã¼ã ã®ä»äºã¯ã
- CloudNative Daysã§ç¨èªã«éç¼ã»éç¨ãã¦ããé
ä¿¡åºç¤ã§ãããdreamkastãã®ãªãã¶ã¼ãããªãã£åºç¤ãæ§ç¯ã»éç¨ãã
- æè¡ stack
- ãããã®ã¯ã©ã¦ã
- Terraform
- Sentry
- Loki
- Grafana
- Mackerel
- CloudNative Daysを支える Observabilityの取り組み 2023年度編 - Speaker Deckã«ãç´¹ä»ããã¦ãã
- (ç¶è¨äºã®é¡åã¯ãã®slideã«å¯ãã訣ã )
- æè¡ stack
- CloudNative Daysã¨ããµã¤ãã³ãã®ãã¬ã¡ããªãCFPã®æåçæ³ãé
ä¿¡ã®ï©¡è½çæ³çããGrafanaã®ããã·ã¥ãã¼ãã«è¦ãå
¬éãã
- æè¡ stask
- ãããã®ã¯ã©ã¦ã
- Terraform
- Prometheus
- Grafana
- æè¡ stask
ã§ããããã®è¨äºã¯Mackerelã«è©±é¡ãçµãã
Mackerelã¯CNDS2024ãããã¼ã«ã¹ãã³ãµã¼ãã¦ãããããããMackerelã使ã£ã¦ãã£ãäºã¯ã
- ECSã§åã (CNDW2024ã§EKSãã移è¡) dreamkastã®ã¡ããªãã¯ãmackerel-container-agentã§è§æ¸¬
- dreamkastã®ä½¿ãµAWSã®ãµã¼ãã¹ããAWSã¤ã³ãã°ã¬ã¼ã·ã§ã³ã§è§æ¸¬
- ãããã®ã¯ã©ã¦ãã§åããªãã¶ã¼ãããªãã£ãã¼ã ã®ãµã¼ãã¼ãmackerel-agentã§è§æ¸¬
- ç£è¦ã«ã¼ã«ã§é¾å¤ã«å°ãã¦ç£ï©¡
- ç¶æ¥ã«çºããã«ã¹ã¿ã ããã·ã¥ãã¼ããä½ð¯¢²
- ãã¾ããçææ©è½ãå©ãã£ã
- ã°ã©ãã«ã³ã¡ã³ããéãã¦Slackã«å ±æã§ããæ©è½ã¯ç§ã¯ä¾¿å©ã ã¨æã£ã¦ãã
ã¨ããµæ®éã®Mackerelã¦ã¼ã¶ã¼ã¨ãã¦éããã¦ããã
Sentryã¯ãDockerãPostgreSQLãRedisãKafkaã使ã£ã¦ãããDockerãPostgreSQLãRedisã¯mackerel-agentã®pluginãæãããã§è§æ¸¬ã§ãããKafkaã«å°ãã¦ã¯å°ç¨ã®pluginãç¡ããPrometheusç¨ã®exporterããGitHub - k1LoW/mackerel-plugin-prometheus-exporter: :fish: Mackerel plugin for scraping Prometheus exporter metrics. :fire:ã§è®æãã¦Mackerelã«æ稿ãã¦ãããããã«éè¯ãã¦å°è©±ãæã£ã¦ã
- Kafkaã®Prometheus exporterã¯commit log streamæ¯ã«ã¡ããªã㯠(kafka_consumergroup_members_XXX) ãä½ã
- commit log streamã¯ã¡ãã»ã¼ã¸ãæãã¨åãæ¿ã¯ã£ã¦ãã
- Sentryã«å¤§éã®ãã¬ã¼ã¹ãéããã (ããèªé«ãè¨è£ã®bugã ã£ãã®ã ã) ææãæããcommit log streamã次ã åãæ¿ã¯ããPrometheus exporterã¯æ¬¡ã ã¨æ°ããã¡ããªãã¯ãMackerelã«æ稿ãã
- æãã°ã©ãã®ã°ã©ãå®ç¾©ã¨ããµãã¼ã¿ãä¸é±éã§æ¸åè¬åã«è¥å¤§åãã
- ãã¹ã詳細ãã¼ã¸ãéãã¨500 ISEã«ãªããã¹ããã§ãããã
- ã°ã©ãå®ç¾©ãæ¶ããã«ãããã¯ã500 ISEã«ãªãæ¶ããªã
æ ããªãäºã«ãããªã£ã¦ãã¾ã£ããããã§ã
- kafka_consumergroup_members ã§å§ã¾ãã¡ããªãã¯ã¯ãç£ï©¡å°è±¡ã§ããªãã®ã§é¤ã
- mackerel-plugin-prometheus-exporterãwrapãã
- Mackerelã®éç¼ï©ã§ãããç§ããMackerelã®codeãä¿®æ£ãã¦ã大ããªã°ã©ãå®ç¾©ãæ¶ããããã«ããããã¦ã°ã©ãå®ç¾©ãæ¶ãã
- éç¼ï©ãåå ãã¦ããã¨ããããµå©é»ãæãâ¦å©é»ã? ã¾ãå©é»ã§ã¯ããã
ä»å¾ã¯è¨è£ã®åºç¤ãOpenTelemetryã«åãæ¿ã¸ã¦ãMackerelã®æ°æ©è½ã使ã£ã¦ãããã¨æãµã