devops-utils-tools commented on issue #6283:
URL: https://github.com/apache/apisix/issues/6283#issuecomment-1034572823


   `
   
   apiVersion: apisix.apache.org/v2beta2
   kind: ApisixRoute
   metadata:
     name: method-route
   spec:
     http:
     - name: method
       backends:
       - serviceName: kubernetes
         servicePort: 443
       match:
         methods:
         - GET
         paths:
         - /111
       plugins:
         - name: request-id
           enable: true
           config:
             include_in_response: true
             header_name: "X-Request-Id"
   
         # - name: skywalking-logger
         #   enable: true
         #   config:
         #     sample_ratio: 1
         #     service_name: "skywalking-apisix-method"
         #     service_instance_name: "skywalking-apisix-method"
         #     endpoint_addr: "http://127.0.0.1:12800";
         #     report_interval: 30
         #     timeout: 15
         #     batch_max_size: 3000
         #     name: skywalking-logger-method
   
         - name: cors
           enable: true
   
         - name: proxy-rewrite
           enable: true
           config:
             regex_uri:
             - ^/case/(.*)
             - /newcase/$1
   
         - name: kafka-logger
           enable: true
           config:
             broker_list: "{192.168.25.111:9092}"
             
             # broker_list: 
             # - 192.168.25.111:9092
   
             kafka_topic: apisix_method
             name: kafka-logger-method
             key: kafka-logger-method
             producer_type: async
             batch_max_size: 3000
             inactive_timeout: 30
             buffer_duration: 300
             retry_delay: 5
             max_retry_count: 3
   
   
   
   `


-- 
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...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to