Add `host` to `DogstatsdConfiguration`
This commit is contained in:
parent
ffdb0db6c6
commit
55b9d84956
|
@ -280,6 +280,7 @@ cdn3StorageManager:
|
|||
|
||||
dogstatsd:
|
||||
environment: dev
|
||||
host: 127.0.0.1
|
||||
|
||||
unidentifiedDelivery:
|
||||
certificate: secret://unidentifiedDelivery.certificate
|
||||
|
|
|
@ -22,6 +22,10 @@ public class DogstatsdConfiguration implements StatsdConfig {
|
|||
@NotBlank
|
||||
private String environment;
|
||||
|
||||
@JsonProperty
|
||||
@NotBlank
|
||||
private String host;
|
||||
|
||||
@Override
|
||||
public Duration step() {
|
||||
return step;
|
||||
|
@ -41,4 +45,9 @@ public class DogstatsdConfiguration implements StatsdConfig {
|
|||
// We have no Micrometer key/value pairs to report, so always return `null`
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String host() {
|
||||
return host;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue