boekkooi-lengoo commented on issue #10618:
URL: https://github.com/apache/apisix/issues/10618#issuecomment-1847082731

   Hey @wklken 
   
   I have noticed a similar issue and was able to remove it by forcing the 
[`consumer`](https://github.com/apache/apisix/blob/3.7.0/apisix/plugins/prometheus/exporter.lua#L228)
 to always be empty.
   
   I use the following in my dockerfile to patch the issue.
   ```
   # Patch 
https://github.com/apache/apisix/blob/3.7.0/apisix/plugins/prometheus/exporter.lua#L228
 to avoid metrics per consumer.
   RUN sed -i \
       -e 's/ctx.consumer_name or ""/""/g' \
       /usr/local/apisix/apisix/plugins/prometheus/exporter.lua
   ```
   
   Hope this helps.
   


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