monkeyDluffy6017 commented on code in PR #10869:
URL: https://github.com/apache/apisix/pull/10869#discussion_r1479529750


##########
conf/config-default.yaml:
##########
@@ -584,22 +584,23 @@ plugin_attr:          # Plugin attributes
       ip: 127.0.0.1                         # Set the IP.
       port: 9091                            # Set the port.
     # metrics:    # Create extra labels from nginx variables: 
https://nginx.org/en/docs/varindex.html
-    #  http_status:
-    #    extra_labels:
-    #      - upstream_addr: $upstream_addr
-    #      - status: $upstream_status  # The label name does not need to be 
the same as the variable name.
-    #  http_latency:
-    #    extra_labels:
-    #      - upstream_addr: $upstream_addr
-    #  bandwidth:
-    #    extra_labels:
-    #      - upstream_addr: $upstream_addr
+    #   http_status:
+    #     extra_labels:
+    #       - upstream_addr: $upstream_addr
+    #       - status: $upstream_status  # The label name does not need to be 
the same as the variable name.
+    #   http_latency:
+    #     extra_labels:
+    #       - upstream_addr: $upstream_addr
+    #   bandwidth:
+    #     extra_labels:
+    #       - upstream_addr: $upstream_addr
     # default_buckets:
     #   - 10
     #   - 50
     #   - 100
     #   - 200
     #   - 500
+    # expire: 86400                         # the expiration time after 
metrics become inactive, unit: second

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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to