|
|
|
@ -17,6 +17,9 @@
|
|
|
|
|
|
|
|
|
|
package com.tencent.cloud.rpc.enhancement.stat.config;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
|
|
|
|
|
|
@ -75,6 +78,11 @@ public class PolarisStatProperties {
|
|
|
|
|
@Value("${spring.cloud.polaris.stat.pushgateway.open-gzip:#{false}}")
|
|
|
|
|
private Boolean openGzip = false;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The path regex list for stat for aggregation.
|
|
|
|
|
*/
|
|
|
|
|
private List<String> pathRegexList = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
public boolean isEnabled() {
|
|
|
|
|
return enabled;
|
|
|
|
|
}
|
|
|
|
@ -139,6 +147,14 @@ public class PolarisStatProperties {
|
|
|
|
|
this.openGzip = openGzip;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<String> getPathRegexList() {
|
|
|
|
|
return pathRegexList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setPathRegexList(List<String> pathRegexList) {
|
|
|
|
|
this.pathRegexList = pathRegexList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return "PolarisStatProperties{" +
|
|
|
|
@ -150,6 +166,7 @@ public class PolarisStatProperties {
|
|
|
|
|
", statService='" + statService + '\'' +
|
|
|
|
|
", pushGatewayPushInterval=" + pushGatewayPushInterval +
|
|
|
|
|
", openGzip=" + openGzip +
|
|
|
|
|
", pathRegexList=" + pathRegexList +
|
|
|
|
|
'}';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|