apache / apisix-helm-chart

Apache APISIX Helm Chart
https://apisix.apache.org/
Apache License 2.0
231 stars 208 forks source link

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

Open unixsrv opened 3 months ago

unixsrv commented 3 months ago

Hello, we are facing an issue described at https://github.com/apache/apisix/issues/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 commented 2 months ago

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!