qihaiyan opened a new pull request, #12706:
URL: https://github.com/apache/apisix/pull/12706

   ### Description
   
   {% if enabled_plugins["prometheus"] and not 
enabled_stream_plugins["prometheus"] then %}
       lua_shared_dict prometheus-metrics {* 
http.lua_shared_dict["prometheus-metrics"] *};
       -- add prometheus-cache here
       lua_shared_dict prometheus-cache {* 
http.lua_shared_dict["prometheus-cache"] *};
   {% end  #%}
   Maybe it's better to set prometheus-cache together with prometheus-metrics 
in ngx_tpl.lua
   
   Only when use_apisix_base is set to true, will the prometheus-cache take 
effect.
   But in order to integrate with QAT, i used a custom built openresty instead 
of apisix-runtime, so use_apisix_base is not true, and prometheus-cache is not 
setted in nginx.conf even if prometheus plugin is enabled. 
   
   #### Which issue(s) this PR fixes:
   Fixes #12703
   
   ### Checklist
   
   - [v] I have explained the need for this PR and the problem it solves
   - [v] I have explained the changes or the new features added to this PR
   - [ ] I have added tests corresponding to this change
   - [ ] I have updated the documentation to reflect this change
   - [ ] I have verified that this change is backward compatible (If not, 
please discuss on the [APISIX mailing 
list](https://github.com/apache/apisix/tree/master#community) first)
   


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