diff --git a/kubernetes/elastic-helm/daemonset.yaml b/kubernetes/elastic-helm/daemonset.yaml index b64a5e12ca..1dd93987dc 100644 --- a/kubernetes/elastic-helm/daemonset.yaml +++ b/kubernetes/elastic-helm/daemonset.yaml @@ -22,33 +22,37 @@ extraEnvs: key: elastic_apm_secret_token config: - extensions: - k8s_observer: - auth_type: serviceAccount - node: ${env:K8S_NODE_NAME} - observe_pods: true +# Uncomment to enable Autodiscovery +# extensions: +# k8s_observer: +# auth_type: serviceAccount +# node: ${env:K8S_NODE_NAME} +# observe_pods: true exporters: otlp/elastic: endpoint: ${ELASTIC_APM_ENDPOINT} compression: none headers: Authorization: Bearer ${ELASTIC_APM_SECRET_TOKEN} - receivers: - receiver_creator: - watch_observers: [ k8s_observer ] - receivers: - redis: - rule: type == "port" && pod.name matches "redis" - config: - collection_interval: 2s +# Uncomment to enable Autodiscovery +# receivers: +# receiver_creator: +# watch_observers: [ k8s_observer ] +# receivers: +# redis: +# rule: type == "port" && pod.name matches "redis" +# config: +# collection_interval: 2s service: - extensions: [k8s_observer] +# Uncomment to enable Autodiscovery +# extensions: [k8s_observer] pipelines: traces: processors: [batch] exporters: [otlp/elastic] metrics: - receivers: [ receiver_creator] +# Uncomment to enable Autodiscovery +# receivers: [ receiver_creator] processors: [batch] exporters: [otlp/elastic] logs: