wankai123 commented on a change in pull request #6608:
URL: https://github.com/apache/skywalking/pull/6608#discussion_r601144170
##########
File path:
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/dsl/DSL.java
##########
@@ -37,6 +38,9 @@
public static Expression parse(final String expression) {
CompilerConfiguration cc = new CompilerConfiguration();
cc.setScriptBaseClass(DelegatingScript.class.getName());
+ ImportCustomizer icz = new ImportCustomizer();
+ icz.addImport("K8sRetagType",
"org.apache.skywalking.oap.meter.analyzer.dsl.SampleFamily.K8sRetagType");
Review comment:
done
##########
File path:
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/dsl/SampleFamily.java
##########
@@ -572,7 +591,31 @@ private static boolean doubleComp(CompType compType,
double a, double b) {
}
}
+ private static class K8sRetagOps {
+
+ private static Sample[] pod2Service(Sample[] ss, String
serviceNameLabel, String podNameLabel) {
Review comment:
done
##########
File path:
oap-server/analyzer/meter-analyzer/src/main/java/org/apache/skywalking/oap/meter/analyzer/dsl/ExpressionParsingContext.java
##########
@@ -72,6 +72,8 @@ static ExpressionParsingContext create() {
ScopeType scopeType;
+ boolean isRetagByK8sMeta;
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]