Skip to content

Commit

Permalink
change the authentication method to work with Elastic Serverless (#90)
Browse files Browse the repository at this point in the history
* Update README.md

* Update deployment.yaml

* Update otelcol-elastic-config-extras.yaml
  • Loading branch information
davidgeorgehope authored Oct 9, 2024
1 parent 6d074fb commit c99d80c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit c99d80c

Please sign in to comment.