Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Redundant call to start in ElasticSearchReporterFactoryBean
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantenney committed Jul 19, 2016
1 parent ed9396b commit d9bbb29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ protected ElasticsearchReporter createInstance()
.hosts(getProperty(ElasticSearchReporterElementParser.HOSTS, String[].class))
.build();

elasticsearchReporter.start(getPeriod(), TimeUnit.NANOSECONDS);

return elasticsearchReporter;
}

Expand Down
4 changes: 3 additions & 1 deletion src/test/resources/reporter-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@
<metrics:reporter type="jmx" metric-registry="metrics" domain="com.foo" mbean-server-ref="mbeanServer" filter-ref="filter" rate-unit="MILLISECONDS" duration-unit="DAYS" />
<metrics:reporter type="newrelic" metric-registry="metrics" period="1m" name="new relic reporter" prefix="newrelic-test"/>
<metrics:reporter type="datadog" metric-registry="metrics" period="1m" transport="http" api-key="a12b3c" host="test" />
<metrics:reporter type="elasticsearch" metric-registry="metrics" period="1m" hosts="localhost:9200" additionalFieldsRef="additionalFields" />

<!--
<metrics:reporter type="elasticsearch" metric-registry="metrics" period="1m" hosts="localhost:9200" additionalFieldsRef="additionalFields" />
<util:map id="additionalFields">
<entry key="someKey" value="someValue" />
</util:map>
-->

<metrics:reporter id="graphite" type="graphite" metric-registry="metrics" period="100ms" host="localhost" port="6666" charset="ISO-8859-1" prefix="metrics-test" clock-ref="mockClock" filter-ref="filter" rate-unit="DAYS" duration-unit="HOURS" />
<metrics:reporter id="graphite-tcp" type="graphite" metric-registry="metrics" transport="tcp" period="100ms" host="localhost" port="6666" charset="ISO-8859-1" prefix="metrics-test" clock-ref="mockClock" filter-ref="filter" rate-unit="DAYS" duration-unit="HOURS" />
Expand Down

0 comments on commit d9bbb29

Please sign in to comment.