Skip to content

Commit

Permalink
Deploy collector as a daemonset (open-telemetry#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest committed Mar 1, 2024
1 parent bed74e1 commit 500ed8b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion newrelic/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
cd "$parent_path/.."

# TODO: These need to be parameterized and this script needs to be integrated with a CI workflow
export DEMO_VERSION="1.7.0"
export DEMO_VERSION="1.8.0"
export PROJECT_ID=<set project id>
export NEW_RELIC_OTLP_ENDPOINT=<NR endpoint>
export NEW_RELIC_API_KEY_NRDOT=<NR key for telemetry routed through NRDOT>
Expand Down
16 changes: 13 additions & 3 deletions newrelic/newrelic-helm-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ default:
repository: us-docker.pkg.dev/$PROJECT_ID/gcr.io/demo
tag: "$DEMO_VERSION"
pullPolicy: Always
envOverrides:
- name: OTEL_COLLECTOR_NAME
valueFrom:
fieldRef:
fieldPath: status.hostIP

opentelemetry-collector:
mode: daemonset
config:
processors:
resourcedetection:
detectors: [gcp]

exporters:
otlp/nrdot:
endpoint: '{{ include "otel-demo.name" . }}-nrotelcol:4317'
Expand All @@ -20,12 +30,12 @@ opentelemetry-collector:
service:
pipelines:
logs:
processors: [memory_limiter, resource, batch]
processors: [memory_limiter, resource, resourcedetection, batch]
exporters: [debug, otlp/nrdot, otlp/newrelic]
traces:
processors: [memory_limiter, resource, batch]
processors: [memory_limiter, resource, resourcedetection, batch]
exporters: [otlp, debug, spanmetrics, otlp/nrdot, otlp/newrelic]
metrics:
receivers: [otlp, spanmetrics]
processors: [memory_limiter, filter/ottl, transform, resource, batch]
processors: [memory_limiter, resource, resourcedetection, batch]
exporters: [otlphttp/prometheus, debug, otlp/nrdot, otlp/newrelic]

0 comments on commit 500ed8b

Please sign in to comment.