Update OpenTelemetry endpoints and add support for custom collector endpoint

This commit is contained in:
Simon Larsen 2023-12-30 22:45:29 +00:00
parent d433a64fa1
commit bf2f9d800c
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
4 changed files with 10 additions and 4 deletions

View File

@ -44,15 +44,15 @@ Once you have configured the telemetry service in your application, you can inte
| Environment Variable | Value |
| --- | --- |
| OTEL_EXPORTER_OTLP_HEADERS | x-oneuptime-service-token=<YOUR_ONEUPTIME_SERVICE_TOKEN> |
| OTEL_EXPORTER_OTLP_ENDPOINT | https://opentelemetry-collector.oneuptime.com |
| OTEL_EXPORTER_OTLP_ENDPOINT | https://otlp.oneuptime.com |
**Example**
```bash
export OTEL_EXPORTER_OTLP_HEADERS=x-oneuptime-service-token=9c8806e0-a4aa-11ee-be95-010d5967b068
export OTEL_EXPORTER_OTLP_ENDPOINT=https://opentelemetry-collector.oneuptime.com
export OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.oneuptime.com
```
If you're self-hosting oneuptime, this can be changed to your self hosted collector endpoint (eg: `http(s)://<your-oneuptime-host>/opentelemetry-collector`)
If you're self-hosting oneuptime, this can be changed to your self hosted collector endpoint (eg: `http(s)://<your-oneuptime-host>/otlp`)
Once you run your application, you should see the logs in the OneUptime telemetry service page. Please contact support@oneuptime.com if you need any help.

View File

@ -5,6 +5,6 @@
Please use
```bash
export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-service-token=9c8806e0-a4aa-11ee-be95-010d5967b068" && export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost/OtlpGrpc" && dotnet run --urls=http://localhost:7856/
export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-service-token=9c8806e0-a4aa-11ee-be95-010d5967b068" && export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost" && dotnet run --urls=http://localhost:7856/
```

View File

@ -56,3 +56,5 @@
2.0
2.0
2.0
2.0
2.0

View File

@ -76,6 +76,10 @@ server {
proxy_pass http://opentelemetry-collector-http;
}
location ~ /opentelemetry.proto.collector* {
grpc_pass grpc://opentelemetry-collector-grpc;
}
}
# Status Pages