This commit is contained in:
Phillip Webb 2015-06-04 12:21:35 -07:00
parent 0d6c197c39
commit 683c19ee8b
3 changed files with 5 additions and 6 deletions

View File

@ -38,8 +38,7 @@ public class MetricExportProperties extends TriggerProperties {
/**
* Specific trigger properties per MetricWriter bean name.
*/
private Map<String, SpecificTriggerProperties> triggers
= new LinkedHashMap<String, SpecificTriggerProperties>();
private Map<String, SpecificTriggerProperties> triggers = new LinkedHashMap<String, SpecificTriggerProperties>();
private Redis redis = new Redis();

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -47,8 +47,7 @@ import com.codahale.metrics.Timer;
* </ul>
*
* @author Dave Syer
*
* @deprecated Use {@link DropwizardMetricServices} instead
* @deprecated Since 1.3 in favor of {@link DropwizardMetricServices}
*/
@Deprecated
public class DropwizardMetricWriter implements MetricWriter {
@ -134,6 +133,7 @@ public class DropwizardMetricWriter implements MetricWriter {
public Double getValue() {
return this.value;
}
}
}

View File

@ -652,7 +652,7 @@ content into your application; rather pick only the properties that you need.
shell.auth.simple.user.name=
shell.auth.simple.user.password=
shell.auth.spring.roles=
# METRICS EXPORT ({sc-spring-boot-actuator}/metrics/export/MetricExportProperties.{sc-ext}[MetricExportProperties])
spring.metrics.export.enabled=true # flag to disable all metric exports (assuming any MetricWriters are available)
spring.metrics.export.delay-millis=5000 # delay in milliseconds between export ticks