Overview
Kube Proxy manages networking rules on nodes to forward requests to services and pods.
Why it’s Useful
- Detects service connectivity failures.
- Tracks proxy health and performance.
- Ensures load balancing across pods.
What Users Can Do
- Monitor kube-proxy process stability.
- Debug service access issues.
- Verify iptables/IPVS rules are functioning.
Steps to Configure
- Get the existing ConfigMap.
kubectl get cm opsramp-k8s-infra-metric-user-config -n <agent-installed-namespace> -o yaml - Edit the ConfigMap.
kubectl edit cm opsramp-k8s-infra-metric-user-config -n <agent-installed-namespace> - Locate the
kube_proxysection in ConfigMap.k8s_cluster: enabled: true config: scrape_interval: "2m" - Update the required parameters.
- Save and apply the changes.
Supported Metrics
| Metric Name | Display Name |
|---|---|
| kubeproxy_sync_full_proxy_rules_duration_seconds | kubeproxy sync full proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_endpoint_changes_pending | kubeproxy sync proxy rules endpoint changes pending |
| kubeproxy_sync_proxy_rules_service_changes_pending | kubeproxy sync proxy rules service changes pending |
| kubeproxy_iptables_ct_state_invalid_dropped_packets | kubeproxy iptables ct state invalid dropped packets |
| kubeproxy_sync_full_proxy_rules_duration_seconds | kubeproxy sync full proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_last_queued_timestamp_seconds | kubeproxy sync proxy rules last queued timestamp seconds |
| kubeproxy_sync_proxy_rules_last_timestamp_seconds | kubeproxy sync proxy rules last timestamp seconds |
| kubeproxy_sync_partial_proxy_rules_duration_seconds | kubeproxy sync partial proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_iptables_partial_restore_failures | kubeproxy sync proxy rules iptables partial restore failures |
| kubeproxy_sync_proxy_rules_iptables | kubeproxy sync proxy rules iptables |
| kubeproxy_sync_proxy_rules_service_changes | kubeproxy sync proxy rules service changes |
| kubeproxy_iptables_localhost_nodeports_accepted_packets | kubeproxy iptables localhost nodeports accepted packets |
| kubeproxy_sync_full_proxy_rules_duration_seconds | kubeproxy sync full proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_duration_seconds | kubeproxy sync proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_endpoint_changes | kubeproxy sync proxy rules endpoint changes |
| kubeproxy_sync_proxy_rules_no_local_endpoints | kubeproxy sync proxy rules no local endpoints |
| kubeproxy_sync_partial_proxy_rules_duration_seconds | kubeproxy sync partial proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_duration_seconds | kubeproxy sync proxy rules duration seconds |
| kubeproxy_network_programming_duration_seconds | kubeproxy network programming duration seconds |
| kubeproxy_sync_partial_proxy_rules_duration_seconds | kubeproxy sync partial proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_iptables_last | kubeproxy sync proxy rules iptables last |
| kubeproxy_network_programming_duration_seconds | kubeproxy network programming duration seconds |
| kubeproxy_network_programming_duration_seconds | kubeproxy network programming duration seconds |
| kubeproxy_sync_proxy_rules_duration_seconds | kubeproxy sync proxy rules duration seconds |
| kubeproxy_sync_proxy_rules_iptables_restore_failures | kubeproxy sync proxy rules iptables restore failures |