-
Notifications
You must be signed in to change notification settings - Fork 716
Open
Labels
bugSomething isn't workingSomething isn't workingchart:collectorIssue related to opentelemetry-collector helm chartIssue related to opentelemetry-collector helm chartgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
When any of presets.annotationDiscovery.(logs|metrics) are enabled, this configuration is generated:
extensions:
k8s_observer:
auth_type: serviceAccount
node: ${env:K8S_NODE_NAME}However K8S_NODE_NAME is not added by default to pod, it is only added if kubeletMetrics is enabled or kubernetesAttributes is enabled on agent mode:
{{- if or .Values.presets.kubeletMetrics.enabled (and .Values.presets.kubernetesAttributes.enabled (eq .Values.mode "daemonset")) }}
- name: K8S_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: K8S_NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
{{- end }}I should also suggest that it would be good if node: ${env:K8S_NODE_NAME} is not getting added if installation is other than daemonset(metrics discovery could be used with non-agent mode)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingchart:collectorIssue related to opentelemetry-collector helm chartIssue related to opentelemetry-collector helm chartgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed