From 6ab2724c485a69f2817730df08ac35db343d0ea6 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 14 Jan 2024 16:28:43 +0100 Subject: [PATCH] otel-agent: collect kubelet stats from host IP 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 https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/22843 --- charts/k8s-infra/values.yaml | 2 +- charts/signoz/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/k8s-infra/values.yaml b/charts/k8s-infra/values.yaml index 277c200e..19f7a556 100644 --- a/charts/k8s-infra/values.yaml +++ b/charts/k8s-infra/values.yaml @@ -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 diff --git a/charts/signoz/values.yaml b/charts/signoz/values.yaml index 17eff6ea..91e8f844 100644 --- a/charts/signoz/values.yaml +++ b/charts/signoz/values.yaml @@ -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