weixiang1862 opened a new issue, #10885:
URL: https://github.com/apache/skywalking/issues/10885

   ### 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
   
   This is my scenario:
   1. otel-collector scrape gateway metric endpoint in every 15S
   2. skywalking mal engine calculate every http code count increasement in 
this 15s and downsampling by sum method
   3. skywalking will persist this metric in meter_sum_xxxxxxxx table in value 
meter mode
   ```
   metricsRules:
     - name: http_200_code_count
       exp: http_server_requests_seconds_count.tagEqual('status', 
'200').sum(['application']).increase('PT15S').service(['application'], 
Layer.GENERAL).downsampling(SUM)
     - name: http_404_code_count
       exp: http_server_requests_seconds_count.tagEqual('status', 
'404').sum(['application']).increase('PT15S').service(['application'], 
Layer.GENERAL).downsampling(SUM)
     ...
     ...
     ...
   ```
   
   ### Use case
   
   I want to change my mal like this, the sum aggregate method use 
'application' and 'status' as aggregate-by params. If skywalking meter system 
support sumlabeled function, this metric will be persisted in 
meter_sumlabeled_xxxxxxxx table in datatable meter mode. 
   
   The  sumlabeled function is easy to extend under skywalking meter system 
excellent architecture design, and it can bring us benefits in query efficiency 
and storage economy.
   
   ```
   metricsRules:
     - name: http_code_count
       exp: 
http_server_requests_seconds_count.sum(['application','status']).increase('PT15S').service(['application'],
 Layer.GENERAL).downsampling(SUM)
   ```
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### 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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to