From b045fc3f8d290b01404e7fd7c105db516e8544d3 Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Wed, 29 Nov 2023 15:44:47 +0000 Subject: [PATCH] Add health_check extension Signed-off-by: ChrsMark --- kubernetes/elastic-helm/daemonset.yaml | 34 ++++++++++++-------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/kubernetes/elastic-helm/daemonset.yaml b/kubernetes/elastic-helm/daemonset.yaml index 1dd93987dc..3bd510af13 100644 --- a/kubernetes/elastic-helm/daemonset.yaml +++ b/kubernetes/elastic-helm/daemonset.yaml @@ -22,37 +22,33 @@ extraEnvs: key: elastic_apm_secret_token config: -# Uncomment to enable Autodiscovery -# extensions: -# k8s_observer: -# auth_type: serviceAccount -# node: ${env:K8S_NODE_NAME} -# observe_pods: true + 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} -# Uncomment to enable Autodiscovery -# receivers: -# receiver_creator: -# watch_observers: [ k8s_observer ] -# receivers: -# redis: -# rule: type == "port" && pod.name matches "redis" -# config: -# collection_interval: 2s + receivers: + receiver_creator: + watch_observers: [ k8s_observer ] + receivers: + redis: + rule: type == "port" && pod.name matches "redis" + config: + collection_interval: 2s service: -# Uncomment to enable Autodiscovery -# extensions: [k8s_observer] + extensions: [health_check, k8s_observer] pipelines: traces: processors: [batch] exporters: [otlp/elastic] metrics: -# Uncomment to enable Autodiscovery -# receivers: [ receiver_creator] + receivers: [ receiver_creator] processors: [batch] exporters: [otlp/elastic] logs: