CAT Restful 批量提交Metric监控数据
11月 1, 2017 |
Nix.Huang
http://ip:portl/cat/r/monitor?op=batch&batch= ${gro […more]
http://ip:portl/cat/r/monitor?op=batch&batch= ${gro […more]
1 2 3 |
<console default-domain="Cat" show-cat-domain="true"> <remote-servers>10.1.1.1:8080,10.1.1.2:8080,10.1.1.3:8080</remote-servers> </console> |
remote-servers配置的是CAT集 […more]
服务器端初始化
1 2 3 4 5 6 7 8 9 10 11 12 13 |
CatServlet.init CatServlet.initComponents DefaultModuleInitializer.execute DefaultModuleInitializer.expandAll CatHomeModule.setup TcpSocketReceiver.init() CatClientModule.execute Cat.setContainer PlexusContainer.lookup(MessageManager.class); MessageManager.initialize TcpSocketSender.initialize PlexusContainer.lookup(MessageProducer.class); MessageProducer.constructor |
接受客户端采集的数据 [cr […more]
cat client的入口点是com.dianping.cat.Cat类,该类是单实例的, private s […more]