Skip to content

Commit c99d80c

Browse files
change the authentication method to work with Elastic Serverless (#90)
* Update README.md * Update deployment.yaml * Update otelcol-elastic-config-extras.yaml
1 parent 6d074fb commit c99d80c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Additionally, the OpenTelemetry Contrib collector has also been changed to the [
3737
```
3838
Don't forget to replace
3939
- `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`).
40-
- `YOUR_APM_SECRET_TOKEN`: your Elastic APM secret token
40+
- `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
4141
1. Execute the following commands to deploy the OpenTelemetry demo to your Kubernetes cluster:
4242
```
4343
# clone this repository

kubernetes/elastic-helm/deployment.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ opentelemetry-collector:
7171
endpoint: ${env:ELASTIC_APM_ENDPOINT}
7272
compression: none
7373
headers:
74-
Authorization: Bearer ${env:ELASTIC_APM_SECRET_TOKEN}
74+
Authorization: ${env:ELASTIC_APM_SECRET_TOKEN}
7575
processors:
7676
batch: {}
7777
resource:

src/otelcollector/otelcol-elastic-config-extras.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exporters:
44
endpoint: "YOUR_APM_ENDPOINT_WITHOUT_HTTPS_PREFIX"
55
compression: none
66
headers:
7-
Authorization: "Bearer YOUR_APM_SECRET_TOKEN"
7+
Authorization: "YOUR_APM_SECRET_TOKEN"
88

99
service:
1010
pipelines:

0 commit comments

Comments
 (0)