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

Nginx errors in metric. Increase lua_shared_dict prometheus-metrics value in helm. #769

Open
unixsrv opened this issue Jul 9, 2024 · 1 comment · May be fixed by #793
Open

Nginx errors in metric. Increase lua_shared_dict prometheus-metrics value in helm. #769

unixsrv opened this issue Jul 9, 2024 · 1 comment · May be fixed by #793

Comments

@unixsrv
Copy link

unixsrv commented Jul 9, 2024

Hello, we are facing an issue described at apache/apisix#7349. Please advise on how to add the nginx parameter during deployment via the Helm chart:

http:
  lua_shared_dict:
    prometheus-metrics: 10m

After adding via customLuaSharedDicts:, I encountered the following error:

[emerg] 1#1: the size 536870912 of shared memory zone "prometheus-metrics" conflicts with already declared size 10485760 in /usr/local/apisix/conf/nginx.conf:100

The reason for adding the parameter is increasing errors in the apisix_nginx_metric_errors_total metric:

image

It has also been noticed that when a certain number of errors is reached, the metrics stop displaying correctly.

@DrJSAnD
Copy link

DrJSAnD commented Jul 22, 2024

Hi!
I have the same issue.
Can anybody help?

Apisix version: 3.9.1
Etcd version: 3.5.0
Helm chart version: 2.7.0

Thanks!

@acuteaura acuteaura linked a pull request Dec 4, 2024 that will close this issue
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 a pull request may close this issue.

2 participants