Merge pull request #12066 from jkschneider:micrometer-428

* pr/12066:
  Polish "Add SignalFxConfig source property"
  Add SignalFxConfig source property
pull/12117/head
Stephane Nicoll 7 years ago
commit bce975c11e

@ -39,6 +39,12 @@ public class SignalFxProperties extends StepRegistryProperties {
*/ */
private String uri; private String uri;
/**
* Uniquely identifies the app instance that is publishing metrics to SignalFx.
* Defaults to the local host name.
*/
private String source;
public String getAccessToken() { public String getAccessToken() {
return this.accessToken; return this.accessToken;
} }
@ -55,4 +61,12 @@ public class SignalFxProperties extends StepRegistryProperties {
this.uri = uri; this.uri = uri;
} }
public String getSource() {
return this.source;
}
public void setSource(String source) {
this.source = source;
}
} }

@ -44,4 +44,9 @@ public class SignalFxPropertiesConfigAdapter
return get(SignalFxProperties::getUri, SignalFxConfig.super::uri); return get(SignalFxProperties::getUri, SignalFxConfig.super::uri);
} }
@Override
public String source() {
return get(SignalFxProperties::getSource, SignalFxConfig.super::source);
}
} }

@ -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.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.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.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.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.signalfx.uri= # Optional custom URI for the SignalFX API.
management.metrics.export.simple.mode=cumulative # Counting mode. management.metrics.export.simple.mode=cumulative # Counting mode.

Loading…
Cancel
Save