Add SignalFxConfig source property
See gh-12066
This commit is contained in:
committed by
Stephane Nicoll
parent
fd0293cd5c
commit
a732053afd
@@ -39,6 +39,11 @@ 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.
|
||||
*/
|
||||
private String source;
|
||||
|
||||
public String getAccessToken() {
|
||||
return this.accessToken;
|
||||
}
|
||||
@@ -55,4 +60,12 @@ public class SignalFxProperties extends StepRegistryProperties {
|
||||
this.uri = uri;
|
||||
}
|
||||
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,4 +44,9 @@ public class SignalFxPropertiesConfigAdapter
|
||||
return get(SignalFxProperties::getUri, SignalFxConfig.super::uri);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String source() {
|
||||
return get(SignalFxProperties::getSource, SignalFxConfig.super::source);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user