Skip to content

Commit a7054d7

Browse files
fix code area
1 parent 09bec16 commit a7054d7

File tree

1 file changed

+45
-8
lines changed

1 file changed

+45
-8
lines changed

articles/container-apps/opentelemetry-agents.md

Lines changed: 45 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,32 +162,69 @@ An OpenTelemetry protocol (OTLP) endpoint is a telemetry data destination that c
162162

163163
While you can set up as many OTLP-configured endpoints as you like, each endpoint must have a distinct name.
164164

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+
165202
# [Azure CLI](#tab/azure-cli)
166203

167204
```azurecli
168205
az containerap env telemetry otlp add \
169-
--name "otlp1" \
206+
--name "otlp1"
170207
--endpoint "ENDPOINT_URL_1" \
171208
--insecure false \
172209
--headers "api-key-1=key" \
173210
--EnableOpenTelemetryTraces true \
174211
--EnableOpenTelemetryMetrics true
175212
az containerap env telemetry otlp add \
176-
--name "otlp2" \
213+
--name "otlp2"
177214
--endpoint "ENDPOINT_URL_2" \
178215
--insecure true \
179216
--EnableOpenTelemetryTraces true \
180217
--EnableOpenTelemetryLogs true
181218
```
182219

220+
---
221+
183222
| Name | Description |
184223
|---|---|
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"`. |
191228

192229
## Configuration options
193230

0 commit comments

Comments
 (0)