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
In this tutorial, you add OpenTelemetry collector as a sidecar container to a Linux custom container app in Azure App Service.
14
14
15
-
In Azure App Service, you can add up to [TODO: #]sidecar containers for each custom container app. Sidecar containers let you deploy extra services and features to your container application without making them tightly coupled to your main application container. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one such monitoring example.
15
+
In Azure App Service, you can add up to 5 sidecar containers for each sidecar-enabled custom container app. Sidecar containers let you deploy extra services and features to your container application without making them tightly coupled to your main application container. For example, you can add monitoring, logging, configuration, and networking services as sidecar containers. An OpenTelemetry collector sidecar is one such monitoring example.
16
16
17
17
For more information about sidecars, see [Sidecar pattern](/azure/architecture/patterns/sidecar).
18
18
@@ -28,8 +28,8 @@ First you create the resources that the tutorial uses (for more information, see
28
28
1. In the [Azure Cloud Shell](https://shell.azure.com), run the following commands:
@@ -86,7 +86,7 @@ First you create the resources that the tutorial uses (for more information, see
86
86
:::image type="content" source="media/tutorial-custom-container-sidecar/create-wizard-container-panel.png" alt-text="Screenshot showing the web app create wizard and settings for the container image and the sidecar support highlighted.":::
87
87
88
88
> [!NOTE]
89
-
> These settings are configured differently in sidecar-enabled containers. For more information, see [Differences for sidecar-enabled containers](#differences-for-sidecar-enabled-containers).
89
+
> These settings are configured differently in sidecar-enabled apps. For more information, see [Differences for sidecar-enabled apps](#differences-for-sidecar-enabled-apps).
90
90
91
91
1. Select **Review + create**, then select **Create**.
92
92
@@ -110,7 +110,7 @@ In this section, you add a sidecar container to your custom container app.
110
110
- **Tag**: **latest**
111
111
- **Port**: **4317**
112
112
113
-
Port 4317 is the default port used by the sample container to receive OpenTelemetry data. It's accessible from any other container in the app at `localhost:4317`. This is exactly how the nginx container sends data to the sidecar (see [TODO: add location]).
113
+
Port 4317 is the default port used by the sample container to receive OpenTelemetry data. It's accessible from any other container in the app at `localhost:4317`. This is exactly how the Nginx container sends data to the sidecar (see the [OpenTelemetry module configuration for the sample Nginx image](https://github.com/Azure-Samples/app-service-sidecar-tutorial-prereqs/blob/main/images/nginx/opentelemetry_module.conf)).
114
114
115
115
1. Select **Apply**.
116
116
@@ -120,7 +120,7 @@ In this section, you add a sidecar container to your custom container app.
120
120
121
121
## 4. Configure environment variables
122
122
123
-
For the sample scenario, the otel-collector sidecar is configured to export the OpenTelemetry data to Azure Monitor, but it needs the connection string as an environment variable (see [TODO: add location]).
123
+
For the sample scenario, the otel-collector sidecar is configured to export the OpenTelemetry data to Azure Monitor, but it needs the connection string as an environment variable (see the [OpenTelemetry configuration file for the otel-collector image](https://github.com/Azure-Samples/app-service-sidecar-tutorial-prereqs/blob/main/images/otel-collector/otel-collector-config.yaml)).
124
124
125
125
You configure environment variables for the containers like any App Service app, by configuring [app settings](configure-common.md#configure-app-settings). The app settings are accessible to all the containers in the app.
126
126
@@ -135,7 +135,7 @@ You configure environment variables for the containers like any App Service app,
135
135
:::image type="content" source="media/tutorial-custom-container-sidecar/configure-app-settings.png" alt-text="Screenshot showing a web app's Configuration page with two app settings added.":::
136
136
137
137
> [!NOTE]
138
-
> Certain app settings don't apply to sidecar-enabled custom container apps. For more information, see [Differences for sidecar-enabled containers](#differences-for-sidecar-enabled-containers)
138
+
> Certain app settings don't apply to sidecar-enabled apps. For more information, see [Differences for sidecar-enabled apps](#differences-for-sidecar-enabled-apps)
139
139
140
140
## 5. Verify in Application Insights
141
141
@@ -157,9 +157,9 @@ When you no longer need the environment, you can delete the resource group, App
157
157
azd down
158
158
```
159
159
160
-
## Differences for sidecar-enabled containers
160
+
## Differences for sidecar-enabled apps
161
161
162
-
Sidecar-enabled custom container apps differ from custom container apps that aren't sidecar-enabled in that the settings aren't set, especially in how you configure basic container settings. Custom container apps that aren't sidecar-enabled are configured mainly using app settings, but sidecar-enabled custom container apps are configured directly as resource properties in the app. For example, these app settings don't apply for sidecar-enabled custom container apps:
162
+
You configure sidecar-enabled apps differently than apps that aren't sidecar-enabled. Specifically, you don't configure the the main container and sidecars with app settings, but directly in the resource properties. These app settings don't apply for sidecar-enabled apps:
163
163
164
164
- Registry authentication settings: `DOCKER_REGISTRY_SERVER_URL`, `DOCKER_REGISTRY_SERVER_USERNAME` and `DOCKER_REGISTRY_SERVER_PASSWORD`.
0 commit comments