|
|
|
@ -19,6 +19,8 @@ package org.springframework.boot.actuate.autoconfigure.metrics.export.graphite; |
|
|
|
import java.time.Duration; |
|
|
|
import java.time.Duration; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import io.micrometer.graphite.GraphiteProtocol; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
@ -29,6 +31,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ConfigurationProperties(prefix = "spring.metrics.graphite") |
|
|
|
@ConfigurationProperties(prefix = "spring.metrics.graphite") |
|
|
|
public class GraphiteProperties { |
|
|
|
public class GraphiteProperties { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Enable publishing to the backend. |
|
|
|
* Enable publishing to the backend. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -59,6 +62,11 @@ public class GraphiteProperties { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private Integer port; |
|
|
|
private Integer port; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Protocol to use while shipping data to Graphite. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private GraphiteProtocol protocol = GraphiteProtocol.Pickled; |
|
|
|
|
|
|
|
|
|
|
|
public Boolean getEnabled() { |
|
|
|
public Boolean getEnabled() { |
|
|
|
return this.enabled; |
|
|
|
return this.enabled; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -106,4 +114,13 @@ public class GraphiteProperties { |
|
|
|
public void setPort(Integer port) { |
|
|
|
public void setPort(Integer port) { |
|
|
|
this.port = port; |
|
|
|
this.port = port; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public GraphiteProtocol getProtocol() { |
|
|
|
|
|
|
|
return this.protocol; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setProtocol(GraphiteProtocol protocol) { |
|
|
|
|
|
|
|
this.protocol = protocol; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|