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