forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "remove unused daemonset.yaml file"
This reverts commit 8de4003.
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
mode: daemonset | ||
presets: | ||
logsCollection: | ||
enabled: true | ||
hostMetrics: | ||
enabled: true | ||
kubeletMetrics: | ||
enabled: true | ||
kubernetesAttributes: | ||
enabled: true | ||
|
||
extraEnvs: | ||
- name: ELASTIC_APM_ENDPOINT | ||
valueFrom: | ||
secretKeyRef: | ||
name: elastic-secret | ||
key: elastic_apm_endpoint | ||
- name: ELASTIC_APM_SECRET_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: elastic-secret | ||
key: elastic_apm_secret_token | ||
|
||
config: | ||
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 | ||
service: | ||
extensions: [health_check, k8s_observer] | ||
pipelines: | ||
traces: | ||
processors: [batch] | ||
exporters: [otlp/elastic] | ||
metrics: | ||
receivers: [ receiver_creator] | ||
processors: [batch] | ||
exporters: [otlp/elastic] | ||
logs: | ||
processors: [batch] | ||
exporters: [otlp/elastic] |