spacewander commented on a change in pull request #3070:
URL: https://github.com/apache/apisix/pull/3070#discussion_r548366160
##########
File path: apisix/utils/batch-processor.lua
##########
@@ -146,8 +150,20 @@ function batch_processor:push(entry)
return
end
+ if not batch_metrics and prometheus.get_prometheus() and self.name
+ and self.route_id and self.server_addr then
+ batch_metrics =
prometheus.get_prometheus():gauge("batch_process_entries",
+ "batch process
remaining entries",
Review comment:
We need to update the
https://github.com/apache/apisix/blob/master/doc/plugins/prometheus.md#available-metrics
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]