Skip to content

Commit

Permalink
Add health_check extension
Browse files Browse the repository at this point in the history
Signed-off-by: ChrsMark <[email protected]>
  • Loading branch information
ChrsMark authored and github-actions committed Jun 5, 2024
1 parent 66cee5f commit 9b1252c
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions kubernetes/elastic-helm/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9b1252c

Please sign in to comment.