suninuni edited a comment on issue #3917:
URL: https://github.com/apache/apisix/issues/3917#issuecomment-920704670
When I set prometheus-metrics as 100m in configmap apisix, apisix throw an
error about key conflicted.
Apisix version is 2.7
```ynl
http:
lua_shared_dicts: # add custom shared cache to
nginx.conf
prometheus-metrics: 100m
```
```shell
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init
WARNING: using fixed Admin API token has security risk.
Please modify "admin_key" in conf/config.yaml .
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
2021/09/16 08:28:56 [emerg] 1#1: the size 104857600 of shared memory zone
"prometheus-metrics" conflicts with already declared size 10485760 in
/usr/local/apisix/conf/nginx.conf:64
nginx: [emerg] the size 104857600 of shared memory zone "prometheus-metrics"
conflicts with already declared size 10485760 in
/usr/local/apisix/conf/nginx.conf:64
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]