diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua index 18b77fd3c590..bfca1ccba5a2 100644 --- a/apisix/cli/ngx_tpl.lua +++ b/apisix/cli/ngx_tpl.lua @@ -105,7 +105,7 @@ http { } server { - listen {* prometheus_server_addr *}; + listen {* prometheus_server_addr *} reuseport; access_log off; @@ -578,7 +578,7 @@ http { {% if enabled_plugins["prometheus"] and prometheus_server_addr then %} server { - listen {* prometheus_server_addr *}; + listen {* prometheus_server_addr *} reuseport; access_log off;