metricbeat/module/kubernetes/proxy/README.md
v1.25.xprocess_cpu_seconds_total
process_resident_memory_bytes
process_virtual_memory_bytes
process_open_fds
process_start_time_seconds
process_max_fds
rest_client_requests_total (alpha)
rest_client_response_size_bytes (alpha)
rest_client_request_size_bytes (alpha)
rest_client_request_duration_seconds (alpha)
kubeproxy_sync_proxy_rules_duration_seconds (alpha)
kubeproxy_network_programming_duration_seconds (alpha)
In order to support a new Kubernetes releases you'll have to generate new expectation files for this module in _meta/test. For that, start by deploying a new kubernetes cluster on the required Kubernetes version, for example:
kind create cluster --image kindest/node:v1.32.0
After that, you can fetch the proxy metrics from the api:
kubectl proxy
Then you can fetch the metrics from the url provided in the output and save it to a new _meta/test/metrics.x.xx file.
curl 127.0.0.1:8001/metrics > _meta/test/metrics.x.xx
Run the following commands to generate and test the expected files:
cd metricbeat/module/kubernetes/proxy
# generate the expected files
go test ./... --data
# test the expected files
go test ./...