cataglyphis opened a new issue, #10853:
URL: https://github.com/apache/apisix/issues/10853

   ### Current Behavior
   
   1. set custom default buckets values in `plugin_attr`
   
   ```yaml
   plugin_attr:
     prometheus:
       default_buckets:
       - 10
       - 50
       - 100
       - 500
       - 1000
       export_uri: /apisix/prometheus/metrics
       metric_prefix: apisix_
   ```
   
   ### Expected Behavior
   
   - latency bucket `le` should be `10, 50, 100, 500, 1000` rather than default 
bucket values
   
   ### Error Logs
   
   ```
   apisix@apisix-6f6f77d9-8mqv4:/usr/local/apisix$ curl 
http://localhost:9091/apisix/prometheus/metrics | grep bucket  % Total    % 
Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  
Speed  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--   
  
0apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="1"}
 4
   
apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="2"}
 
4apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="5"}
 4
   
1apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="10"}
 
40apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="20"}
 4
   
0apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="50"}
 4 
apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="100"}
 4
   
4apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="200"}
 
42apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="500"}
 4
   
5apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="1000"}
 
45apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="2000"}
 4
   
1apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="5000"}
 4 
apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="10000"}
 4
    
apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="30000"}
 4 
apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="60000"}
 4
    
apisix_http_latency_bucket{type="apisix",route="apisix_dashboard_dashboard",service="",consumer="",node="10.110.39.6",le="+Inf"}
 4
   ```
   
   ### Steps to Reproduce
   
   1. set plugin_attr for prometheus, and use custom default buckets value 
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.2.2
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): 3.5.0
   - APISIX Dashboard version, if relevant: 3.0.0
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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