Skip to content

bug: Unable to override values lua_shared_dict prometheus-metrics and lua_shared_dict prometheus-cache #12774

@hebbaa

Description

@hebbaa

Current Behavior

As per the document the value lua_shared_dict prometheus-metrics and lua_shared_dict prometheus-cache overriden using
nginx_config:

  meta:
    lua_shared_dict:              # Nginx Lua shared memory zone. Size units are m or k.
      prometheus-metrics: 300m
      prometheus-cache: 30m    :q!   # Cache the calculated metrics data text.

But this doesn't work.

Expected Behavior

Overriding values should work as per the document.

Error Logs

No response

Steps to Reproduce

Try to override and restart .

Environment

  • APISIX version (run apisix version):apisix version
    /usr/bin/luajit -e package.path = '/usr/local/apisix/deps/share/lua/5.1/?/init.lua;' .. package.path ./apisix/cli/apisix.lua version
    3.14.1

  • Operating system (run uname -a):

  • OpenResty / Nginx version (run openresty -V or nginx -V):nginx version: openresty/1.27.1.2 (x86_64-pc-linux-gnu)
    built by gcc 15.2.0 (Wolfi 15.2.0-r3)
    built with OpenSSL 3.6.0 1 Oct 2025
    TLS SNI support enabled

  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):

  • APISIX Dashboard version, if relevant:

  • Plugin runner version, for issues related to plugin runners:

  • LuaRocks version, for installation issues (run luarocks --version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionlabel for questions asked by users

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions