1450793561 commented on issue #12085: URL: https://github.com/apache/apisix/issues/12085#issuecomment-2772028976
If the following configuration is used, there is still an indicator of 0. <img width="875" alt="Image" src="https://github.com/user-attachments/assets/6eda615b-d708-479d-aeeb-341b834311ee" /> ``` prometheus: # Plugin: prometheus export_uri: /apisix/prometheus/metrics # Set the URI for the Prometheus metrics endpoint. metric_prefix: apisix_ # Set the prefix for Prometheus metrics generated by APISIX. enable_export_server: true # Enable the Prometheus export server. export_addr: # Set the address for the Prometheus export server. ip: 10.2.130.160 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 upstream_status: expire: 10 ``` -- 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]
