You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .portal-docs/docker-hub/README.yarp.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ The [.NET Docker samples](https://github.com/dotnet/dotnet-docker/blob/main/samp
19
19
20
20
You can run this image to launch a YARP instance.
21
21
22
+
## Configuration
23
+
22
24
YARP expects the config file to be in `/etc/yarp.config`, and listens by default on port 5000.
23
25
24
26
Example of configuration:
@@ -71,6 +73,18 @@ The [YARP GitHub repository](https://github.com/dotnet/yarp/tree/main/samples/)
71
73
72
74
For more details, see the [documentation](https://aka.ms/YarpDocumentation) for how to configure the image and documentation for the reverse proxy configuration.
73
75
76
+
## OpenTelemetry support
77
+
78
+
This image supports OpenTelemetry. It can be configured by passing environment variables to the container:
79
+
80
+
```bash
81
+
docker run --rm -v $(pwd)/my-config.config:/etc/yarp.config -p 5000:5000 -e OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp-endpoint.internal:4317 mcr.microsoft.com/dotnet/yarp:latest
82
+
```
83
+
84
+
See the [OTLP Exporter Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/) for all supported environment variables.
85
+
86
+
You can skip HTTPS validation for the OTLP endpoint only by passing the environment variable `YARP_UNSAFE_OLTP_CERT_ACCEPT_ANY_SERVER_CERTIFICATE`.
Copy file name to clipboardExpand all lines: .portal-docs/mar/README.yarp.portal.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ The [.NET Docker samples](https://github.com/dotnet/dotnet-docker/blob/main/samp
37
37
38
38
You can run this image to launch a YARP instance.
39
39
40
+
### Configuration
41
+
40
42
YARP expects the config file to be in `/etc/yarp.config`, and listens by default on port 5000.
41
43
42
44
Example of configuration:
@@ -89,6 +91,18 @@ The [YARP GitHub repository](https://github.com/dotnet/yarp/tree/main/samples/)
89
91
90
92
For more details, see the [documentation](https://aka.ms/YarpDocumentation) for how to configure the image and documentation for the reverse proxy configuration.
91
93
94
+
### OpenTelemetry support
95
+
96
+
This image supports OpenTelemetry. It can be configured by passing environment variables to the container:
97
+
98
+
```bash
99
+
docker run --rm -v $(pwd)/my-config.config:/etc/yarp.config -p 5000:5000 -e OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp-endpoint.internal:4317 mcr.microsoft.com/dotnet/yarp:latest
100
+
```
101
+
102
+
See the [OTLP Exporter Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/) for all supported environment variables.
103
+
104
+
You can skip HTTPS validation for the OTLP endpoint only by passing the environment variable `YARP_UNSAFE_OLTP_CERT_ACCEPT_ANY_SERVER_CERTIFICATE`.
Copy file name to clipboardExpand all lines: README.yarp.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ The [.NET Docker samples](https://github.com/dotnet/dotnet-docker/blob/main/samp
21
21
22
22
You can run this image to launch a YARP instance.
23
23
24
+
### Configuration
25
+
24
26
YARP expects the config file to be in `/etc/yarp.config`, and listens by default on port 5000.
25
27
26
28
Example of configuration:
@@ -73,6 +75,18 @@ The [YARP GitHub repository](https://github.com/dotnet/yarp/tree/main/samples/)
73
75
74
76
For more details, see the [documentation](https://aka.ms/YarpDocumentation) for how to configure the image and documentation for the reverse proxy configuration.
75
77
78
+
### OpenTelemetry support
79
+
80
+
This image supports OpenTelemetry. It can be configured by passing environment variables to the container:
81
+
82
+
```bash
83
+
docker run --rm -v $(pwd)/my-config.config:/etc/yarp.config -p 5000:5000 -e OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp-endpoint.internal:4317 mcr.microsoft.com/dotnet/yarp:latest
84
+
```
85
+
86
+
See the [OTLP Exporter Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/) for all supported environment variables.
87
+
88
+
You can skip HTTPS validation for the OTLP endpoint only by passing the environment variable `YARP_UNSAFE_OLTP_CERT_ACCEPT_ANY_SERVER_CERTIFICATE`.
89
+
76
90
## Related Repositories
77
91
78
92
.NET:
@@ -97,13 +111,13 @@ For more details, see the [documentation](https://aka.ms/YarpDocumentation) for
97
111
98
112
Tags | Dockerfile | OS Version
99
113
-----------| -------------| -------------
100
-
2.3.0-preview.1, 2.3-preview, 2-preview, latest | [Dockerfile](src/yarp/2.3/azurelinux-distroless/amd64/Dockerfile) | Azure Linux 3.0
114
+
2.3.0-preview.2, 2.3-preview, 2-preview, latest | [Dockerfile](src/yarp/2.3/azurelinux-distroless/amd64/Dockerfile) | Azure Linux 3.0
101
115
102
116
### Linux arm64 Tags
103
117
104
118
Tags | Dockerfile | OS Version
105
119
-----------| -------------| -------------
106
-
2.3.0-preview.1, 2.3-preview, 2-preview, latest | [Dockerfile](src/yarp/2.3/azurelinux-distroless/arm64v8/Dockerfile) | Azure Linux 3.0
120
+
2.3.0-preview.2, 2.3-preview, 2-preview, latest | [Dockerfile](src/yarp/2.3/azurelinux-distroless/arm64v8/Dockerfile) | Azure Linux 3.0
107
121
<!--End of generated tags-->
108
122
109
123
*Tags not listed in the table above are not supported. See the [Supported Tags Policy](https://github.com/dotnet/dotnet-docker/blob/main/documentation/supported-tags.md). See the [full list of tags](https://mcr.microsoft.com/v2/dotnet/nightly/yarp/tags/list) for all supported and unsupported tags.*
Copy file name to clipboardExpand all lines: eng/readme-templates/Use.yarp.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
readme-host: Moniker of the site that will host the readme
5
5
}}You can run this image to launch a YARP instance.
6
6
7
+
{{ARGS["top-header"]}}# Configuration
8
+
7
9
YARP expects the config file to be in `/etc/yarp.config`, and listens by default on port 5000.
8
10
9
11
Example of configuration:
@@ -54,4 +56,16 @@ This example will proxy every requests from `http://localhost:5000/aspnetapp` to
54
56
55
57
The [YARP GitHub repository](https://github.com/dotnet/yarp/tree/main/samples/) contains more configuration samples.
56
58
57
-
For more details, see the [documentation](https://aka.ms/YarpDocumentation) for how to configure the image and documentation for the reverse proxy configuration.
59
+
For more details, see the [documentation](https://aka.ms/YarpDocumentation) for how to configure the image and documentation for the reverse proxy configuration.
60
+
61
+
{{ARGS["top-header"]}}# OpenTelemetry support
62
+
63
+
This image supports OpenTelemetry. It can be configured by passing environment variables to the container:
64
+
65
+
```bash
66
+
docker run --rm -v $(pwd)/my-config.config:/etc/yarp.config -p 5000:5000 -e OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp-endpoint.internal:4317 mcr.microsoft.com/dotnet/yarp:latest
67
+
```
68
+
69
+
See the [OTLP Exporter Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/) for all supported environment variables.
70
+
71
+
You can skip HTTPS validation for the OTLP endpoint only by passing the environment variable `YARP_UNSAFE_OLTP_CERT_ACCEPT_ANY_SERVER_CERTIFICATE`.
0 commit comments