Created
December 16, 2017 19:59
-
-
Save Rajind/99a0ff98c1a58e37175285a0b4dc8e94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
~ Copyright (c) 2010-2017 AdroitLogic Private Ltd. (http://adroitlogic.org). All Rights Reserved. | |
~ | |
~ AdroitLogic PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | |
--> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd"> | |
<!-- Use the following bean to use the embedded Elasticsearch server --> | |
<!--<bean id="es-server" class="org.adroitlogic.x.metrics.EmbeddedElasticsearchServer"/>--> | |
<!-- Use the following bean to use an external Elasticsearch server --> | |
<bean id="es-server" class="org.adroitlogic.x.metrics.ExternalElasticsearchServer"> | |
<constructor-arg> | |
<map> | |
<entry key="localhost" value="9300"/> | |
</map> | |
</constructor-arg> | |
<constructor-arg value="elasticsearch" type="java.lang.String"/> | |
</bean> | |
<bean id="es-publisher" class="org.adroitlogic.x.metrics.ESStatisticsPublisher"> | |
<constructor-arg ref="es-server"/> | |
<property name="esHealthTimeoutMillis" value="5000"/> | |
<!--Template & Alias Configuration--> | |
<property name="templateFile" value="ultraesb-x-template.json"/> | |
<property name="inactiveSettingFile" value="inactive-index-setting.json"/> | |
<property name="indexTemplateName" value="ultraesb_x_template"/> | |
<property name="initialIndexName" value="ultraesb_x-000001"/> | |
<property name="activeIndexAliasName" value="active_ultraesb_x"/> | |
<property name="inactiveIndexAliasName" value="inactive_ultraesb_x"/> | |
<property name="indexMappingType" value="x_statistics"/> | |
<!--BulkProcessor Configuration--> | |
<property name="bulkActions" value="1000"/> | |
<property name="bulkSizeInMB" value="5"/> | |
<property name="flushIntervalInSeconds" value="60"/> | |
<property name="concurrentRequests" value="1"/> | |
<property name="backOffExponentialTimeInMillis" value="100"/> | |
<property name="backOffExponentialRetryAttempts" value="3"/> | |
<property name="optimized" value="false"/> | |
<!--RollOver Configuration--> | |
<property name="indexRollOverEnabled" value="false"/> | |
<property name="maxDocs" value="1000"/> | |
<property name="maxAgeInMinutes" value="15"/> | |
<property name="rollOverTimePeriodInMinutes" value="10"/> | |
<property name="deleteOldestIndexAfterRollOver" value="false"/> | |
<property name="deleteInactiveIndicesAtInit" value="false"/> | |
<property name="deleteInactiveIndicesAtDestroy" value="false"/> | |
</bean> | |
<bean id="es-collector" class="org.adroitlogic.x.metrics.ESMetricsCollector"> | |
<constructor-arg ref="es-publisher" /> | |
<property name="primaryMetricsTemplateValidTime" value="20000"/> | |
<property name="metricsReportGenerationTimePeriod" value="30000"/> | |
<property name="metricsTemplateSyncTimePeriod" value="20000"/> | |
<!-- | |
To include any custom field-value pairs in each elasticsearch record, uncomment the following | |
block and add them as key value pairs. | |
e.g.: To add a constant value <entry key="custom_field_name" value="constant_value"/> | |
To add a environment variable <entry key="custom_field_name" value="env:ENV_VAR_NAME"/> | |
To add a system property <entry key="custom_field_name" value="sys:SYS_PROP_KEY"/> | |
--> | |
<!--<property name="customFields">--> | |
<!--<map>--> | |
<!--<entry key="key" value="value"/>--> | |
<!--</map>--> | |
<!--</property>--> | |
</bean> | |
<bean id="metrics-engine" class="org.adroitlogic.x.metrics.ESMetricsEngine"> | |
<constructor-arg ref="es-collector"/> | |
</bean> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment