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.
feat: add the Elastic Collector distribution (#31)
* add the Elastic Collector distribution * feat: add Elastic distro to Helm deployment * remove attributes processors for k8s config * chore: bump elastic-agent snapshot version * docs: add k8s configuration deployment command * chore: remove otel header from Elastic config * use Bearer for apm authorization header * Update kubernetes/elastic-helm/values.yaml Co-authored-by: Chris Mark <[email protected]> * Update kubernetes/elastic-helm/configmap-elastic.yaml Co-authored-by: Chris Mark <[email protected]> --------- Co-authored-by: Chris Mark <[email protected]>
- Loading branch information
Showing
9 changed files
with
152 additions
and
59 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
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
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
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
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,71 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: elastic-otelcol-agent | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: otelcol | ||
|
||
data: | ||
relay: | | ||
connectors: | ||
spanmetrics: {} | ||
exporters: | ||
debug: {} | ||
otlp/elastic: | ||
endpoint: ${env:ELASTIC_APM_ENDPOINT} | ||
compression: none | ||
headers: | ||
Authorization: Bearer ${ELASTIC_APM_SECRET_TOKEN} | ||
extensions: | ||
processors: | ||
batch: {} | ||
receivers: | ||
httpcheck/frontendproxy: | ||
targets: | ||
- endpoint: http://example-frontendproxy:8080 | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: ${env:MY_POD_IP}:4317 | ||
http: | ||
cors: | ||
allowed_origins: | ||
- http://* | ||
- https://* | ||
endpoint: ${env:MY_POD_IP}:4318 | ||
service: | ||
extensions: | ||
pipelines: | ||
logs: | ||
exporters: | ||
- debug | ||
- otlp/elastic | ||
processors: | ||
- batch | ||
receivers: | ||
- otlp | ||
metrics: | ||
exporters: | ||
- otlp/elastic | ||
- debug | ||
processors: | ||
- batch | ||
receivers: | ||
- httpcheck/frontendproxy | ||
- otlp | ||
- spanmetrics | ||
traces: | ||
exporters: | ||
- otlp/elastic | ||
- debug | ||
- spanmetrics | ||
processors: | ||
- batch | ||
receivers: | ||
- otlp | ||
telemetry: | ||
metrics: | ||
address: ${env:MY_POD_IP}:8888 | ||
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
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
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,22 @@ | ||
exporters: | ||
otlp/elastic: | ||
# !!! Elastic APM https endpoint WITHOUT the "https://" prefix | ||
endpoint: "YOUR_APM_ENDPOINT_WITHOUT_HTTPS_PREFIX" | ||
compression: none | ||
headers: | ||
Authorization: "Bearer YOUR_APM_SECRET_TOKEN" | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [spanmetrics, otlp/elastic] | ||
metrics: | ||
receivers: [otlp, spanmetrics] | ||
processors: [batch] | ||
exporters: [otlp/elastic] | ||
logs: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [otlp/elastic] |
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,18 @@ | ||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
cors: | ||
allowed_origins: | ||
- "http://*" | ||
- "https://*" | ||
|
||
exporters: | ||
debug: | ||
|
||
processors: | ||
batch: | ||
|
||
connectors: | ||
spanmetrics: |