apisix icon indicating copy to clipboard operation
apisix copied to clipboard

bug: 用plugin-interceptors方法对/apisix/prometheus/metrics目录进行限制无效

Open tiger333777 opened this issue 6 years ago • 4 comments

Issue description

Environment

  • apisix version (cmd: apisix version):apisix 2.o
  • OS:centos 7

用下面方法,对/apisix/prometheus/metrics 进行限制无效,烦请验证是否bug https://github.com/apache/apisix/blob/master/doc/zh-cn/plugin-interceptors.md

tiger333777 avatar Nov 08 '20 13:11 tiger333777

@tiger333777 Please check the master branch. The interceptors didn't work for 2.0 (This version is not new enough).

spacewander avatar Nov 08 '20 14:11 spacewander

2.1 is released. Feel free to reopen it if it could be reproduced in the master branch.

spacewander avatar Dec 02 '20 06:12 spacewander

I found it still doesn't work in 2.1 version @spacewander

ziyou434 avatar Dec 15 '20 10:12 ziyou434

You should provide an example to prove it is invalid. I tried myself, it works!

spacewander avatar Dec 16 '20 03:12 spacewander