监控使用(Spring)
xml配置
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<util:list id="falconDataCollectorList">
<bean class="com.kascend.jellyfish.skynet.task.monitor.SkynetExecutionDataCollector">
<constructor-arg index="0" value="checkItem_consumer" />
</bean>
</util:list>
<bean id="falconReporter" class="com.heimuheimu.naivemonitor.falcon.FalconReporter" init-method="init" destroy-method="close">
<constructor-arg index="0" value="http://127.0.0.1:1988/v1/push" />
<constructor-arg index="1" ref="falconDataCollectorList" />
</bean>
</beans>