[java-identity-provider COMMIT] /trunk/idp-conf/src/main/resources/conf/admin/metrics.xml
noreply at shibboleth.net
noreply at shibboleth.net
Sun Oct 23 20:08:46 EDT 2016
Author: scantor
Date: Sun Oct 23 20:08:46 2016
New Revision: 8528
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=8528&view=rev
Log:
Add example of push metrics reporter.
Modified:
trunk/idp-conf/src/main/resources/conf/admin/metrics.xml
Modified: trunk/idp-conf/src/main/resources/conf/admin/metrics.xml
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/conf/admin/metrics.xml?rev=8528&r1=8527&r2=8528&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/conf/admin/metrics.xml (original)
+++ trunk/idp-conf/src/main/resources/conf/admin/metrics.xml Sun Oct 23 20:08:46 2016
@@ -103,4 +103,27 @@
</bean>
-->
+ <!--
+ In addition to the "pull" REST API for accessing metrics, a "push" reporter is also
+ available to upload a JSON feed to a URL. The example shown relies on standard JVM
+ trust configuration for TLS server verification.
+
+ The "start" method triggers the timer thread; the example pushes every 30 minutes.
+ -->
+ <!--
+ <bean id="PushReporter" parent="shibboleth.metrics.HTTPReporter" c:name="MyCollector"
+ p:collectorURL="https://log.example.org/cgi-bin/collector.cgi" />
+
+ <bean class="org.springframework.beans.factory.config.MethodInvokingBean"
+ p:targetObject-ref="PushReporter"
+ p:targetMethod="start">
+ <property name="arguments">
+ <list>
+ <value>30</value>
+ <util:constant static-field="java.util.concurrent.TimeUnit.MINUTES" />
+ </list>
+ </property>
+ </bean>
+ -->
+
</beans>
More information about the commits
mailing list