From 6c85ed70e44d4523763792c1e8ac9bb2ffa515ef Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 19 Feb 2018 10:53:25 +0100 Subject: [PATCH] Polish "Add SignalFxConfig source property" Closes gh-12066 --- .../metrics/export/signalfx/SignalFxProperties.java | 5 +++-- .../src/main/asciidoc/appendix-application-properties.adoc | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/signalfx/SignalFxProperties.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/signalfx/SignalFxProperties.java index 94eed09988..8cd16b678b 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/signalfx/SignalFxProperties.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/signalfx/SignalFxProperties.java @@ -40,7 +40,8 @@ public class SignalFxProperties extends StepRegistryProperties { private String uri; /** - * Uniquely identifies the app instance that is publishing metrics to SignalFx. Defaults to the local host name. + * Uniquely identifies the app instance that is publishing metrics to SignalFx. + * Defaults to the local host name. */ private String source; @@ -61,7 +62,7 @@ public class SignalFxProperties extends StepRegistryProperties { } public String getSource() { - return source; + return this.source; } public void setSource(String source) { diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc index 27e7fee501..4c7ce88a38 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc @@ -1380,6 +1380,7 @@ content into your application. Rather, pick only the properties that you need. management.metrics.export.signalfx.enabled= # Whether exporting of metrics to this backend is enabled. management.metrics.export.signalfx.num-threads= # Number of threads to use with the metrics publishing scheduler. management.metrics.export.signalfx.read-timeout= # Read timeout for requests to this backend. + management.metrics.export.signalfx.source= # Uniquely identifies the app instance that is publishing metrics to SignalFx. Defaults to the local host name. management.metrics.export.signalfx.step=1m # Step size (i.e. reporting frequency) to use. management.metrics.export.signalfx.uri= # Optional custom URI for the SignalFX API. management.metrics.export.simple.mode=cumulative # Counting mode.