prometheus API export data too large #7513
warrenincn
started this conversation in
General
Replies: 1 comment 2 replies
-
ref: #4273 we are talking about that add some configuration items of the Prometheus plugin to support selecting what data to collect |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
apisix version: master
environment:K8S
scenario:Use apisix_bandwidth metrics to accomplish upstream's auto scale. Upstream's nodes use K8S pod ip. The pod ip changes a lot, lead to the prometheus export data too large(one route enable prometheus plugin, run 2 weeks, the export data now is 13839lines/1.7MB).
Relevant code:
apisix/apisix/plugins/prometheus/exporter.lua
Line 229 in 44d20c3
In our scenario, the label: node(balancer_ip) is useless.
Any idea to settle this?
Beta Was this translation helpful? Give feedback.
All reactions