kongjun01 opened a new issue #5285:
URL: https://github.com/apache/apisix/issues/5285


   ### Issue description
   
   After I enabled http-logger and prometheus, prometheus reported many errors.
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.10.0
   - OS (cmd: `uname -a`): linux
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: 
depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   
   
   ### Steps to reproduce
   
   1. The http-logger and the prometheus are open simultaneously 
   
   ### Actual result
   
   Not affect access but error.log has been reporting wrong. It causes the disk 
to fill up.
   
   ### Error log
   
   2021/10/19 17:33:40 [error] 52789#3731960: *5052 [lua] prometheus.lua:860: 
log_error(): inconsistent labels count, expected 3, got 1, context: ngx.timer
   2021/10/19 17:33:40 [error] 52789#3731960: *5052 [lua] prometheus.lua:860: 
log_error(): inconsistent labels count, expected 3, got 1, context: ngx.timer
   2021/10/19 17:33:41 [error] 52789#3731960: *5077 [lua] prometheus.lua:860: 
log_error(): inconsistent labels count, expected 3, got 1, context: ngx.timer
   
   ### Expected result
   
   _No response_


-- 
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]


Reply via email to