Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the authentication method to work with Elastic Serverless #90

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Additionally, the OpenTelemetry Contrib collector has also been changed to the [
```
Don't forget to replace
- `YOUR_APM_ENDPOINT_WITHOUT_HTTPS_PREFIX`: your Elastic APM endpoint (*without* `https://` prefix) that *must* also include the port (example: `1234567.apm.us-west2.gcp.elastic-cloud.com:443`).
- `YOUR_APM_SECRET_TOKEN`: your Elastic APM secret token
- `YOUR_APM_SECRET_TOKEN`: your Elastic APM secret token, include the Bearer or ApiKey but not the "Authorization=" part e.g. Bearer XXXXXX or ApiKey XXXXX
1. Execute the following commands to deploy the OpenTelemetry demo to your Kubernetes cluster:
```
# clone this repository
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/elastic-helm/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ opentelemetry-collector:
endpoint: ${env:ELASTIC_APM_ENDPOINT}
compression: none
headers:
Authorization: Bearer ${env:ELASTIC_APM_SECRET_TOKEN}
Authorization: ${env:ELASTIC_APM_SECRET_TOKEN}
processors:
batch: {}
resource:
Expand Down
2 changes: 1 addition & 1 deletion src/otelcollector/otelcol-elastic-config-extras.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exporters:
endpoint: "YOUR_APM_ENDPOINT_WITHOUT_HTTPS_PREFIX"
compression: none
headers:
Authorization: "Bearer YOUR_APM_SECRET_TOKEN"
Authorization: "YOUR_APM_SECRET_TOKEN"

service:
pipelines:
Expand Down
Loading