Expand the default max packet size for Dogstatsd
This commit is contained in:
parent
1e5fadc440
commit
0f52d2e464
|
@ -11,6 +11,7 @@ import io.micrometer.statsd.StatsdFlavor;
|
|||
import java.time.Duration;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Positive;
|
||||
|
||||
public class DogstatsdConfiguration implements StatsdConfig {
|
||||
|
||||
|
@ -22,6 +23,10 @@ public class DogstatsdConfiguration implements StatsdConfig {
|
|||
@NotBlank
|
||||
private String environment;
|
||||
|
||||
@JsonProperty
|
||||
@Positive
|
||||
private int maxPacketLength = 8932;
|
||||
|
||||
@Override
|
||||
public Duration step() {
|
||||
return step;
|
||||
|
@ -41,4 +46,9 @@ public class DogstatsdConfiguration implements StatsdConfig {
|
|||
// We have no Micrometer key/value pairs to report, so always return `null`
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int maxPacketLength() {
|
||||
return maxPacketLength;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue