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

  1. Get the existing ConfigMap.
    kubectl get cm opsramp-k8s-infra-metric-user-config -n <agent-installed-namespace> -o yaml
  2. Edit the ConfigMap.
    kubectl edit cm opsramp-k8s-infra-metric-user-config -n <agent-installed-namespace>
  3. Locate the kube_proxy section in ConfigMap.
    k8s_cluster:
      enabled: true
      config:
        scrape_interval: "2m"
  4. Update the required parameters.
  5. Save and apply the changes.

Supported Metrics

Metric NameDisplay Name
kubeproxy_sync_full_proxy_rules_duration_secondskubeproxy sync full proxy rules duration seconds
kubeproxy_sync_proxy_rules_endpoint_changes_pendingkubeproxy sync proxy rules endpoint changes pending
kubeproxy_sync_proxy_rules_service_changes_pendingkubeproxy sync proxy rules service changes pending
kubeproxy_iptables_ct_state_invalid_dropped_packetskubeproxy iptables ct state invalid dropped packets
kubeproxy_sync_full_proxy_rules_duration_secondskubeproxy sync full proxy rules duration seconds
kubeproxy_sync_proxy_rules_last_queued_timestamp_secondskubeproxy sync proxy rules last queued timestamp seconds
kubeproxy_sync_proxy_rules_last_timestamp_secondskubeproxy sync proxy rules last timestamp seconds
kubeproxy_sync_partial_proxy_rules_duration_secondskubeproxy sync partial proxy rules duration seconds
kubeproxy_sync_proxy_rules_iptables_partial_restore_failureskubeproxy sync proxy rules iptables partial restore failures
kubeproxy_sync_proxy_rules_iptableskubeproxy sync proxy rules iptables
kubeproxy_sync_proxy_rules_service_changeskubeproxy sync proxy rules service changes
kubeproxy_iptables_localhost_nodeports_accepted_packetskubeproxy iptables localhost nodeports accepted packets
kubeproxy_sync_full_proxy_rules_duration_secondskubeproxy sync full proxy rules duration seconds
kubeproxy_sync_proxy_rules_duration_secondskubeproxy sync proxy rules duration seconds
kubeproxy_sync_proxy_rules_endpoint_changeskubeproxy sync proxy rules endpoint changes
kubeproxy_sync_proxy_rules_no_local_endpointskubeproxy sync proxy rules no local endpoints
kubeproxy_sync_partial_proxy_rules_duration_secondskubeproxy sync partial proxy rules duration seconds
kubeproxy_sync_proxy_rules_duration_secondskubeproxy sync proxy rules duration seconds
kubeproxy_network_programming_duration_secondskubeproxy network programming duration seconds
kubeproxy_sync_partial_proxy_rules_duration_secondskubeproxy sync partial proxy rules duration seconds
kubeproxy_sync_proxy_rules_iptables_lastkubeproxy sync proxy rules iptables last
kubeproxy_network_programming_duration_secondskubeproxy network programming duration seconds
kubeproxy_network_programming_duration_secondskubeproxy network programming duration seconds
kubeproxy_sync_proxy_rules_duration_secondskubeproxy sync proxy rules duration seconds
kubeproxy_sync_proxy_rules_iptables_restore_failureskubeproxy sync proxy rules iptables restore failures