ãã®è¨äºã¯ Mackerel Advent Calendar 2017 ã®21æ¥ç®ã®è¨äºã§ãã åæ¥ã¯ id:heleeen ããã® ãã ã¹ã¿ã¼ã®ããã«ç£è¦å°å ¥ããã人éã®ããã®ç£è¦ãããã»ããè¯ããããªãã¨ããããã¾ãã ã§ããã湿度ãä¸ãã£ã¦ããã£ãã§ããã
çªç¶ã§ããåã®ä»æ¥ã®ä»äºã®æ§åã§ãã
10:05 ãããããä»äºãå§ãã¦ã¾ããããããã 10:40 ãããã¾ã§ Chrome 㧠GHE ä¸ã®ã¬ãã¥ã¼ããã¦ã¾ããã10:50 åãããã¾ã§ã®ç©ºç½æéã¯ãã¶ããã¤ã¬ã§ãããããããã Emacs 㨠iTerm2 ãã°ãã°ã触ã£ã¦ãã®ã§ã³ã¼ããæ¸ãã¦ããæ°ããã¾ãã12:30 ãããã«ä¸æ®µè½ãã¦ããã©ã¦ã¶ã§ã®åä½ç¢ºèªãã¬ãã¥ã¼ä¾é ¼ãæ¸ãã¦ãã¾ãã13~14:00 ãæ¼ä¼ã¿ãªã®ã§ãããå¤å極ã¾ããªãå㯠13:10 ã»ã©ã¾ã§ä»äºããã¦ããããã§ããåå¾ã¯æºã¾ã£ã¦ããã¬ãã¥ã¼ãçä»ãã¦ããã®ã§ Chrome 㨠iTerm2 ã«ã»ã©ã»ã©ã«ã¿ã¤ããã¦ã¾ããããã®è¨äºã¯ 16:40 é ãã Emacs ã§æ¸ãå§ãã¾ããã
ã¨ãããããªã¡ããªãã¯ã Mackerel ã«è¨é²ã§ããã!
ãã®ã¢ããªã±ã¼ã·ã§ã³ãå
¥ãããã !! Mac å°ç¨ã§ã!!!
https://github.com/pokutuna/MackerelAppActivity.app
ãã£ã¦ãããã¨ã¯ç°¡åã§ããã®æç¹ã§ã¢ã¯ãã£ããªã¢ããªã±ã¼ã·ã§ã³åãã¡ããªãã¯åã¨ãã¦ãã¿ã¤ãæ°ãå¤ã¨ãã¦å®æçã« Mackerel ã«éä¿¡ãã¦ããã ãã§ãã
ã¤ãããã
ã¤ã³ã¹ãã¼ã«
ãªã㨠id:aereal ããã®ããã㧠Homebrew ã§å ¥ãããã¨ãã§ãã¾ãã
# https://github.com/aereal/homebrew-mackerelappactivity
brew tap aereal/mackerelappactivity
brew cask install mackerelappactivity
è¨å®ãã¡ã¤ã«ããã
ãããã JSON ã ~/.mackerel-app-activity.json
ã«ããã¦ãã ããã
ã³ã¡ã³ãã¯æ¶ãã¦ãã!!
{ // Mackerel ã® API ãã¼, æ¸ãè¾¼ã¿æ¨©éãå¿ è¦ã§ã "ApiKey": "********", // Mackerel ä¸ã® Service åã§ã "ServiceName": "clients", // ã¡ããªãã¯ã® prefix ã§ã, PC ã®ååã¨ãå ¥ããã¨åå¥ã®ã°ã©ãã«ã§ããã "MetricPrefix": "activity.types.", // ã¡ããªãã¯åã«ã¯ BundlerIdentifier(ã¢ããªèå¥åã®ãããªãã¤)ã®æ«ç¯ã使ãã¾ãã // ã¢ããªã«ãã£ã¦ã¯åããã¥ããã®ã§ã¡ããªãã¯åã®å¯¾å¿ãæå®ã§ãã¾ã "NameMapping": { "slackmacgap": "Slack", "LimeChat-AppStore": "LimeChat", "keychainaccess": "" // ã¡ããªãã¯åã空ã ã¨éä¿¡ããªã }, // Mackerel ã¸ã® API ãªã¯ã¨ã¹ãéé(å)ã§ã "PostIntervalMinutes": 1 }
ã¢ã¯ã»ã·ããªãã£ã«è¿½å ãã
ãã¼å ¥åãæ¤åºããã®ã«æ¨©éãå¿ è¦ãªã®ã§ "ã¢ã¯ã»ã·ããªãã£" ã¸ã®è¿½å ãå¿ è¦ã§ãã åã«ã¯æªæã¯ãªãã§ããä¿¡ç¨ããªãã®ã§ãåèªã®è²¬ä»»ã§ã¢ã¯ã»ã·ããªãã£ã«è¿½å ãã¦ãã ãããããã¿ã¯ãã¼ãã¬ã¼ã¨åãã§ããããã
ãã¨ã¯ã¢ããªãèµ·åããã°åãã¯ãï¼
ã¢ã¤ã³ã³ã«ã¤ãã¦
ãã®ã¢ã¤ã³ã³ã¯é¯ã®æ£é¢é¡ãã¤ã¡ã¼ã¸ãã¦åãæ¸ãããã®ã§ãã ã¡ãã¥ã¼ãã¼ã«å¸¸é§ããã®ã§æ²æ¨ããã«ãªã¯ãå¾ ã¡ãã¦ããã¾ãã ã³ã¼ããå㧠Swift ãæ¸ããã¨ãã風æ ãªã®ã§ãã¡ãããå¾ ã¡ãã¦ããã¾ãã