å種ããã«ã¦ã§ã¢ã«å¯¾å¿ããå
¬å¼ã®ãã©ã°ã¤ã³ãå©ç¨ãã¦ç°¡åã«ããã«ã¦ã§ã¢ã®ã¡ããªãã¯ãåéã§ãã¾ããåä½ç¢ºèªç°å¢ã¯ãmackerel-agent
ã¨åä¸ã§ãã®ã§ãMackerelã®æ¦èª¬ã®åä½ç°å¢ãåç
§ãã¦ãã ããã
AWS ELBã»AWS RDSãªã©ãmackerel-agent
ãã¤ã³ã¹ãã¼ã«ã§ããªãAWSã¯ã©ã¦ãç°å¢ã¯AWSã¤ã³ãã°ã¬ã¼ã·ã§ã³ããå©ç¨ãã ããããµã¼ãã¹ã¡ããªãã¯ã¨ãã¦æ稿ããããã«ã¯ãfluentdããå©ç¨ãã ããã詳ããã¯ãAWSã®CloudWatchã®ã¡ããªãã¯ããELBé¢é£ã®ã¡ããªãã¯ããµã¼ãã¹ã¡ããªãã¯ã«æ稿ããããåç
§ãã¦ãã ããã
å ¬å¼ãã©ã°ã¤ã³éã«å«ã¾ãããã©ã°ã¤ã³ã¯ä¸è¨ãåç §ãã¦ãã ããã
- å ¬å¼ãã©ã°ã¤ã³éãã¤ã³ã¹ãã¼ã«ãã
- å ¬å¼ãã©ã°ã¤ã³éãå©ç¨ãã
- å ¬å¼ãã©ã°ã¤ã³éã®ã³ã¼ã
å ¬å¼ãã©ã°ã¤ã³éãã¤ã³ã¹ãã¼ã«ãã
Linuxç³»OSã®å ´å
ã¤ã³ã¹ãã¼ã«ã«ã¯ã使ãã®ç°å¢ã«åããã¦yumãªãã¸ããªãããã¯aptãªãã¸ããªã使ããã¨ãæ¨å¥¨ãã¦ãã¾ãããªãã¸ããªã¯ æ°è¦ãã¹ãã®ç»é² ãè¡ãéã«è¨å®ããã¾ããrpmãã¡ã¤ã«ãdebãã¡ã¤ã«ãç´æ¥åå¾ãããå ´åã¯ãGitHub Releases ãåç §ãã¦ãã ããã
rpmããã±ã¼ã¸ã®å ´å
sudo yum install mackerel-agent-plugins
ã¢ãããã¼ãã®éã¯ã以ä¸ã®ã³ãã³ãã§ãããªããã¨ãã§ãã¾ãã
sudo yum update mackerel-agent-plugins
debããã±ã¼ã¸ã®å ´å
sudo apt-get install mackerel-agent-plugins
ã¢ãããã¼ãã®éã¯ã以ä¸ã®ã³ãã³ããããããªããã¨ãã§ãã¾ãã
sudo apt-get update sudo apt-get install mackerel-agent-plugins
Windows Serverã®å ´å
å ¬å¼ãã©ã°ã¤ã³ã¯ã¨ã¼ã¸ã§ã³ãã«å梱ããã¾ããå梱ããã¦ãããã©ã°ã¤ã³ã¯ ãã©ã°ã¤ã³ä¸è¦§ ãåç §ãã¦ãã ãããã¨ã¼ã¸ã§ã³ãã®ã¤ã³ã¹ãã¼ã«æ¹æ³ã«ã¤ãã¦ã¯ æ°è¦ãã¹ãã®ç»é² ãåç §ãã¦ãã ããã
ã¨ã¼ã¸ã§ã³ããã¢ãããã¼ããããã¨ã§å梱ã®ãã©ã°ã¤ã³ãã¢ãããã¼ãããã¾ããã¢ãããã¼ãæ¹æ³ã«ã¤ãã¦ã¯ Windowsã«mackerel-agentãã¤ã³ã¹ãã¼ã«ãã ãåç §ãã¦ãã ããã
å梱ããã¦ããªããã©ã°ã¤ã³ã«ã¤ãã¦ã¯ãå ¬å¼ã§ã®ãµãã¼ã対象å¤ã¨ãªã£ã¦ãããã¨ã«å ãã¦ããèªèº«ã§ãã«ããå®æ½ãã¦ããã ãå¿ è¦ãããã¾ãã
å ¬å¼ãã©ã°ã¤ã³éãå©ç¨ãã
åãã©ã°ã¤ã³ã®å©ç¨æ¹æ³ã®è©³ç´°ã¯ããã©ã°ã¤ã³ä¸è¦§ ã®ããã¥ã¡ã³ããåç §ãã¦ãã ããã
Linuxç³»OSã®å ´å
åãã©ã°ã¤ã³ã¯/usr/bin
ã«ã¤ã³ã¹ãã¼ã«ããã¦ãã¾ãã®ã§ãmackerel-agentã®è¨å®ãã¡ã¤ã«ã«å©ç¨ãããã©ã°ã¤ã³ã«åããã¦ä»¥ä¸ã®ãããªè¨å®ã追å ãã¦ãã ãããè¨å®ã®åæ ã«ã¯ãmackerel-agentã®åèµ·åãå¿
è¦ã§ãã
Apache2ç¨ãã©ã°ã¤ã³ã®å ´å
[plugin.metrics.apache2] command = ["mackerel-plugin-apache2"]
Windows Serverã®å ´å
åãã©ã°ã¤ã³ã¯ã¨ã¼ã¸ã§ã³ãã®ã¤ã³ã¹ãã¼ã«ãã©ã«ãã«æ ¼ç´ããã¦ããããã¹ãéã£ã¦ãã¾ããmackerel-agentã®è¨å®ãã¡ã¤ã«ã«å©ç¨ãããã©ã°ã¤ã³ã«åããã¦ä»¥ä¸ã®ãããªè¨å®ã追å ãã¦ãã ãããè¨å®ã®åæ ã«ã¯ãmackerel-agentã®åèµ·åãå¿ è¦ã§ãã
ãmackerel-plugin-mssqlããã©ã°ã¤ã³ã使ãå ´åã¯ä»¥ä¸ã®ããã«ãªãã¾ãã
[plugin.metrics.mssql] command = ["mackerel-plugin-mssql"]
å ¬å¼ãã©ã°ã¤ã³éã®ã³ã¼ã
å ¬å¼ãã©ã°ã¤ã³é㯠GitHub ã§å ¬éãã¦ãã¾ãã æ°ããããã«ã¦ã§ã¢ã«å¯¾å¿ãããã©ã°ã¤ã³ã®Pull Requestãªã©ããã¤ã§ããå¾ ã¡ãã¦ãã¾ãã
ãã©ã°ã¤ã³ãä½ãããã«ã¯ ãã¹ãã®ã«ã¹ã¿ã ã¡ããªãã¯ãæ稿ãã ãåç §ãã¦ãã ããã