wu-sheng opened a new issue, #13322: URL: https://github.com/apache/skywalking/issues/13322
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar feature requirement. ### Description ```yaml # endpoint metrics # `attr0` is defined in the `EndpointDecorator` as the Layer. - name: endpoint_cpm-layer metricName: endpoint_cpm groupByTagNames: - attr0 sort: des ``` TopN supported multiple columns as conditions to do `group-by` pre-aggregation. Now, we have a further requirement to add extra filter conditions for this pre-aggregation. Exclude and Include mechanisms are expected. ```yaml # endpoint metrics # `attr0` is defined in the `EndpointDecorator` as the Layer. - name: endpoint_cpm-layer metricName: endpoint_cpm groupByTagNames: - attr0 sort: des includes: - column: attr1 value: namespace1 excludes: - column: attr2 value: cluster2 ``` OAP will pick the proper topN name to match different on-demand queries. BanyanDB side only needs to support a little more filter mechanisms when declare topN. ### Use case _No response_ ### Related issues _No response_ ### Are you willing to submit a pull request to implement this on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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. To unsubscribe, e-mail: notifications-unsubscr...@skywalking.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org