EvanLjp commented on issue #6719:
URL: https://github.com/apache/skywalking/issues/6719#issuecomment-817803089


   Maybe there are 3 new plugins for the feature, which are log_abort_filter 
plugin, log_meter_filter_plugin, and the log_meter_tag plugin.
   # log_abort_filter plugin
   ```
   processor:
         filters:
           - plugin_name: "log-abort-filter"
            aborts:
             - service: demo_service
                service_instance: demo_instance
                endpoint: endpoint1
                abort_tags:
                    - logger: logger1
                    - thread: thread1
   ```
   # log_meter_filter_plugin
   
   ```
   processor:
         filters:
          - plugin_name: "log-metrics-counter-filter"
             log_metrics_rules_file: log-metrics-counter.file
   
   
   [
       {
           "metrics_name1_counter":"",
           "filter":[
               {
                   "type":"regexp",
                   "service":"service1",
                   "serviceInstance":"instance1",
                   "endpoint":"endpoint1",
                   "tags":[
                       {
                           "tagname1":"tagvalue1"
                       }
                   ],
                   "message":"message1"
               }
           ]
       }
   ]
   
   
   
   # log_meter_tag plugin
   [
     {
       "metrics_name1_counter": "",
       "constant_labels": {
         "a": "b"
       },
       "dynamic_labels": [
         "service",
         "serviceInstance",
         "endpoint",
         "tags.xx"
       ]
     }
   ]
   


-- 
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]


Reply via email to