Skip to content

Commit

Permalink
otel-agent: collect kubelet stats from host IP (#380)
Browse files Browse the repository at this point in the history
Not all k8s deployments resolve the node host name to an IP. This is
generally true inside of cloud providers, but not necessarily the case
when self-hosting.

Fixes open-telemetry/opentelemetry-collector-contrib#22843
  • Loading branch information
zimbatm authored Jan 19, 2024
1 parent 7e7b159 commit c829e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/k8s-infra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ presets:
enabled: true
collectionInterval: 30s
authType: serviceAccount
endpoint: ${K8S_NODE_NAME}:10250
endpoint: ${K8S_HOST_IP}:10250
insecureSkipVerify: true
extraMetadataLabels:
- container.id
Expand Down
2 changes: 1 addition & 1 deletion charts/signoz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,7 @@ k8s-infra:
enabled: true
collectionInterval: 30s
authType: serviceAccount
endpoint: ${K8S_NODE_NAME}:10250
endpoint: ${K8S_HOST_IP}:10250
insecureSkipVerify: true
kubernetesAttributes:
enabled: true
Expand Down

0 comments on commit c829e0b

Please sign in to comment.