apisix
apisix copied to clipboard
feat: Apisix Prometheus metrics - Disable unneeded labels/metrics
Description
- I’d like the option to disable unused metric labels in order to reduce APISIX Prometheus metrics cardinality and prevent overflow errors, such as those mentioned in this issue
prometheus:
metrics:
http_status:
disable_labels:
- http_status
- node
Another solution is about configure the specific metric labels to use, example:
prometheus:
metrics:
http_status:
labels:
- http_status
- node
- I’d like the option to disable unused metrics to reduce the amount of memory of the plugin when creating metrics that are not needed in my case
prometheus:
metrics:
http_status:
disable: true
Thanks in advance!
Hi @luarx, I saw a similar one https://github.com/apache/apisix/issues/12680. Can we discuss this in one issue? I'll close it. Let's discuss it here.
Sure, I have updated this task with the info of the other one 👍
Hello, I'm also interested in this. As an initial POC would it be okay to disable certain labels globally? Or would we need to configure labels for each individual metric?