Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make prometheus shared dict configurable #793

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

@@ -448,6 +448,9 @@ apisix:
# - name: bar
# size: 1m

# Set the size of prometheus-metrics shared dict
prometheusSharedDictSize: 15m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Is it a good idea to use a separate orphaned key?

Wouldn't it be better to implement it as a map and allow the original shared dict name used by APISIX to be passed in directly for overriding. e.g.

luaSharedDicts:
  - name: prometheus-metrics
    size: 100m

If you think this is unclear, perhaps it could also be called builtinLuaSharedDicts. Or, make it configurable by customLuaSharedDicts, although not intuitive.

BTW, if you update the values template, please update the documentation along with it.

Copy link
Author

@acuteaura acuteaura Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is very specific (in the otherwise unused meta key) in the upstream config, and the same mechanism doesn't seem to be used anywhere else, so I opted for a single specific key, but feel free to request a specific change if you have something in mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nginx errors in metric. Increase lua_shared_dict prometheus-metrics value in helm.
2 participants