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: articles/container-apps/opentelemetry-agents.md
+45-8Lines changed: 45 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,32 +162,69 @@ An OpenTelemetry protocol (OTLP) endpoint is a telemetry data destination that c
162
162
163
163
While you can set up as many OTLP-configured endpoints as you like, each endpoint must have a distinct name.
164
164
165
+
# [ARM template](#tab/arm)
166
+
167
+
```json
168
+
{
169
+
"properties": {
170
+
"appInsightsConfiguration": {},
171
+
"openTelemetryConfiguration": {
172
+
"destinationsConfiguration":{
173
+
"otlpConfiguration": [
174
+
{
175
+
"name": "otlp1",
176
+
"endpoint": "ENDPOINT_URL_1",
177
+
"insecure": false,
178
+
"headers": "api-key-1=key"
179
+
},
180
+
{
181
+
"name": "otlp2",
182
+
"endpoint": "ENDPOINT_URL_2",
183
+
"insecure": true
184
+
}
185
+
]
186
+
},
187
+
"logsConfiguration": {
188
+
"destinations": ["otlp2"]
189
+
},
190
+
"tracesConfiguration":{
191
+
"destinations": ["otlp1", "otlp2"]
192
+
},
193
+
"metricsConfiguration": {
194
+
"destinations": ["otlp1"]
195
+
}
196
+
}
197
+
}
198
+
}
199
+
200
+
```
201
+
165
202
# [Azure CLI](#tab/azure-cli)
166
203
167
204
```azurecli
168
205
az containerap env telemetry otlp add \
169
-
--name "otlp1" \
206
+
--name "otlp1"
170
207
--endpoint "ENDPOINT_URL_1" \
171
208
--insecure false \
172
209
--headers "api-key-1=key" \
173
210
--EnableOpenTelemetryTraces true \
174
211
--EnableOpenTelemetryMetrics true
175
212
az containerap env telemetry otlp add \
176
-
--name "otlp2" \
213
+
--name "otlp2"
177
214
--endpoint "ENDPOINT_URL_2" \
178
215
--insecure true \
179
216
--EnableOpenTelemetryTraces true \
180
217
--EnableOpenTelemetryLogs true
181
218
```
182
219
220
+
---
221
+
183
222
| Name | Description |
184
223
|---|---|
185
-
|`--name`| A name you select to identify your OTLP-configured endpoint. |
186
-
|`--endpoint`| The URL of the destination that receives collected data. |
187
-
|`--insecure`| Defaults to `true`. Defines whether to enable client transport security for the exporter's gRPC connection. If set to `false`, the `headers` parameter is required. |
188
-
|`--headers`| Space separated values in `key=value` format that provides required security information for an OTLP endpoint. Example: `"api-key=key other-config-value=value"`|
189
-
190
-
---
224
+
|`name`| A name you select to identify your OTLP-configured endpoint. |
225
+
|`endpoint`| The URL of the destination that receives collected data. |
226
+
|`insecure`| Default true. Defines whether to enable client transport security for the exporter's gRPC connection. If false, the `headers` parameter is required. |
227
+
|`headers`| Space-separated values, in 'key=value' format, that provide required information for the OTLP endpoints' security. Example: `"api-key=key other-config-value=value"`. |
0 commit comments