|
|
|
@ -19,6 +19,7 @@ package org.springframework.boot.actuate.autoconfigure.metrics.export.statsd;
|
|
|
|
|
import java.time.Duration;
|
|
|
|
|
|
|
|
|
|
import io.micrometer.statsd.StatsdFlavor;
|
|
|
|
|
import io.micrometer.statsd.StatsdProtocol;
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
|
|
|
|
|
@ -53,6 +54,11 @@ public class StatsdProperties {
|
|
|
|
|
*/
|
|
|
|
|
private Integer port = 8125;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Protocol of the StatsD server to receive exported metrics.
|
|
|
|
|
*/
|
|
|
|
|
private StatsdProtocol protocol = StatsdProtocol.UDP;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Total length of a single payload should be kept within your network's MTU.
|
|
|
|
|
*/
|
|
|
|
@ -102,6 +108,14 @@ public class StatsdProperties {
|
|
|
|
|
this.port = port;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public StatsdProtocol getProtocol() {
|
|
|
|
|
return this.protocol;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setProtocol(StatsdProtocol protocol) {
|
|
|
|
|
this.protocol = protocol;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getMaxPacketLength() {
|
|
|
|
|
return this.maxPacketLength;
|
|
|
|
|
}
|
|
|
|
|