apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.44k stars 2.51k forks source link

prometheus.lua:920: log_error(): Error while setting 'batch_process_entries{} 'no memory' while logging request #10951

Open qyk1995 opened 7 months ago

qyk1995 commented 7 months ago

Description

I enabled the prometheus plugin and the tencent-cloud-cls plugin.After running for a while, it appears:

[lua] prometheus.lua:920: log_error(): Error while setting 'batch_process_entries{name="tencent-cloud-cls",route_id="00000000000000004305",serveraddr="1.1.1.1"}' to '73': 'no memory' while logging request, client: 1.1.1.2, server: , request: "POST /v1/query HTTP/1.1"

prometheus:

ref: https://apisix.apache.org/docs/apisix/plugins/prometheus/

enabled: true
# -- path of the metrics endpoint
path: /apisix/prometheus/metrics
# -- prefix of the metrics
metricPrefix: apisix_
# -- container port where the metrics are exposed
containerPort: 9091

Environment

smileby commented 7 months ago

I saw a PR to optimize it #10869

shreemaan-abhishek commented 7 months ago

any updates @qyk1995 ?