Skip to content

kubeletstatsreceiver: set collect_all_network_interfaces on pods#178

Closed
cazorla19 wants to merge 4 commits into
mainfrom
collect-interface-stats-for-pods
Closed

kubeletstatsreceiver: set collect_all_network_interfaces on pods#178
cazorla19 wants to merge 4 commits into
mainfrom
collect-interface-stats-for-pods

Conversation

@cazorla19

Copy link
Copy Markdown

This will continue fixing CDS-2133 by collecting pod network stats via kubeletstatsreceiver along with the node network stats.

receivers:
  kubeletstats:
    collection_interval: 20s
    auth_type: "serviceAccount"
    endpoint: "${env:K8S_NODE_NAME}:10250"
    insecure_skip_verify: true
    collect_all_network_interfaces:
      pod: true # this is the actual change
      node: true

In original PR #173 I've enabled it only on the node-level for now, since enabling it on the pod-level will increase network metrics cardinality without any useful case for our users. Now, after the chart deployment on the user environment, the metric stats still look incomplete without this flag being set, i.e. it still blindly relies on eth0 interface name.

image
image

This change should fix this issue.

@cazorla19 cazorla19 requested review from douglascamata, iblancasa and povilasv and removed request for nicolastakashi and oded-dd May 19, 2025 09:02
@cazorla19 cazorla19 closed this May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant