mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 14:49:07 +00:00
Update OpenTelemetry endpoints and add support for custom collector endpoint
This commit is contained in:
parent
d433a64fa1
commit
bf2f9d800c
@ -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.
|
||||
|
@ -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/
|
||||
```
|
||||
|
||||
|
@ -56,3 +56,5 @@
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
2.0
|
||||
|
@ -76,6 +76,10 @@ server {
|
||||
proxy_pass http://opentelemetry-collector-http;
|
||||
}
|
||||
|
||||
location ~ /opentelemetry.proto.collector* {
|
||||
grpc_pass grpc://opentelemetry-collector-grpc;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# Status Pages
|
||||
|
Loading…
Reference in New Issue
Block a user