hanahmily commented on a change in pull request #5276:
URL: https://github.com/apache/skywalking/pull/5276#discussion_r471810755



##########
File path: docs/en/setup/backend/backend-alarm.md
##########
@@ -24,6 +24,12 @@ Alarm rule is constituted by following keys
 - **Exclude names**. The following entity names are excluded in this rule. 
Please follow [Entity name define](#entity-name).
 - **Include names regex**. Provide a regex to include the entity names. If 
both setting the include name list and include name regex, both rules will take 
effect.
 - **Exclude names regex**. Provide a regex to exclude the exclude names. If 
both setting the exclude name list and exclude name regex, both rules will take 
effect.
+- **Include labels**. The following labels of the metric are included in this 
rule.
+- **Exclude labels**. The following labels of the metric are excluded in this 
rule.
+- **Include labels regex**. Provide a regex to include labels. If both setting 
the include label list and include label regex, both rules will take effect.
+- **Exclude labels regex**. Provide a regex to exclude labels. If both setting 
the exclude label list and exclude label regex, both rules will take effect.
+*The settings of labels is required by meter-system which intends to store 
metrics from label-system platform, just like Prometheus, Micrometer, etc.
+The function supports the above four settings should implement 
`LabeledValueHolder`.*

Review comment:
       done

##########
File path: 
oap-server/server-alarm-plugin/src/main/java/org/apache/skywalking/oap/server/core/alarm/provider/RunningRule.java
##########
@@ -168,6 +161,46 @@ public void in(MetaInAlarm meta, Metrics metrics) {
         }
     }
 
+    private boolean validate(String target, List<String> includeList, 
List<String> excludeList,

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:
us...@infra.apache.org


Reply via email to