From 7bb0bb080c85979f90010169c6aec63b5a279025 Mon Sep 17 00:00:00 2001 From: Nic Date: Wed, 7 Jan 2026 09:28:01 +0800 Subject: [PATCH] feat: add gzip configuration for metrics report Signed-off-by: Nic --- charts/gateway/Chart.yaml | 2 +- charts/gateway/README.md | 2 ++ charts/gateway/values.yaml | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/gateway/Chart.yaml b/charts/gateway/Chart.yaml index b75a677..4ef9949 100644 --- a/charts/gateway/Chart.yaml +++ b/charts/gateway/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.42 +version: 0.2.43 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/gateway/README.md b/charts/gateway/README.md index 984bc79..bd0aaf9 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -55,9 +55,11 @@ The command removes all the Kubernetes components associated with the chart and | api7ee.status_endpoint.enabled | bool | `false` | When enabled, APISIX will provide `/status` and `/status/ready` endpoints, /status endpoint will return 200 status code if APISIX has successfully started and running correctly, /status/ready endpoint will return 503 status code if none of the configured etcd (dp_manager) are available. | | api7ee.status_endpoint.ip | string | `"0.0.0.0"` | The IP address and port on which the status endpoint will listen. | | api7ee.status_endpoint.port | int | `7085` | The port on which the status endpoint will listen. | +| api7ee.telemetry.compression_level | int | `-1` | gzip compression level. -1 uses library default (usually 6).Range 0-9; 1 fastest, 9 highest compression. Gzip is enabled by default. | | api7ee.telemetry.enable | bool | `true` | enable telemetry data report to the control plane | | api7ee.telemetry.interval | int | `15` | interval in seconds to send telemetry data to the control plane | | api7ee.telemetry.max_metrics_size | int | `33554432` | max size in bytes(default 32M) of the metrics data sent to the control plane, if the size exceeds, the data will be truncated | +| api7ee.telemetry.metrics_batch_size | int | `4194304` | max batch size before compression (bytes, 4 MiB). | | apisix.affinity | object | `{}` | Set affinity for API7 Gateway deploy | | apisix.customLuaSharedDicts | list | `[]` | Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings, click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict | | apisix.customizedConfig | object | `{}` | If apisix.enableCustomizedConfig is true, full customized config.yaml. Please note that other settings about APISIX config will be ignored | diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 4396f15..e50ca3e 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -14,6 +14,10 @@ api7ee: interval: 15 # -- max size in bytes(default 32M) of the metrics data sent to the control plane, if the size exceeds, the data will be truncated max_metrics_size: 33554432 + # -- max batch size before compression (bytes, 4 MiB). + metrics_batch_size: 4194304 + # -- gzip compression level. -1 uses library default (usually 6).Range 0-9; 1 fastest, 9 highest compression. Gzip is enabled by default. + compression_level: -1 # -- healthcheck data report interval in seconds healthcheck_report_interval: 120