Connect the Collector to OTLP Backends (Dynatrace, Datadog, Grafana)
Collector Output Configuration
Section titled “Collector Output Configuration”Add an otel entry under the output section of your config.yaml:
output: otel: - name: "my-otel-backend" enabled: true endpoint: "https://your-otlp-endpoint/v1/logs" service_name: "ms-teams-agent" deployment_environment: "prod" headers: Authorization: "Bearer <token>"Parameters
Section titled “Parameters”| Parameter | Required | Description |
|---|---|---|
name | Yes | Identifier for this OTLP output (used in logs) |
enabled | Yes | Set to true to activate the OTLP output |
endpoint | Yes | Full URL of the OTLP logs endpoint |
service_name | No | Service name attached to exported logs |
deployment_environment | No | Environment label attached to exported logs |
headers | No | HTTP headers, usually used for authentication |
Grafana OTLP Configuration
Section titled “Grafana OTLP Configuration”output: otel: - name: "grafana" enabled: true endpoint: "https://otlp-gateway-prod-eu-west-2.grafana.net/otlp/v1/logs" service_name: "ms-teams-agent" deployment_environment: "prod" headers: Authorization: "Basic <credentials>"Detailed setup: OTLP to Grafana Cloud.
Datadog OTLP Configuration
Section titled “Datadog OTLP Configuration”output: otel: - name: "datadog" enabled: true endpoint: "https://otlp.datadoghq.com/v1/logs" service_name: "ms-teams-agent" deployment_environment: "prod" headers: DD-API-KEY: "<api-key>"Detailed setup: OTLP to Datadog.
Dynatrace OTLP Configuration
Section titled “Dynatrace OTLP Configuration”output: otel: - name: "dynatrace" enabled: true endpoint: "https://{your-tenant}.live.dynatrace.com/api/v2/otlp/v1/logs" service_name: "ms-teams-agent" deployment_environment: "prod" headers: Authorization: "Api-token <token>"Validate the Connection
Section titled “Validate the Connection”After editing the configuration, run:
ms-teams-agent validate --config ./config.yamlms-teams-agent test-connection --config ./config.yamlms-teams-agent run --config ./config.yaml --dry-runVerify Data Arrival
Section titled “Verify Data Arrival”- Grafana: confirm logs are visible in your logs data source and filter on
service_name. - Datadog: confirm logs arrive in Log Explorer and contain Teams event families.
- Dynatrace OTLP: confirm logs arrive in Logs/Grail with expected source fields.
- If data is not arriving, check collector logs and then follow Collector Troubleshooting.
✅ Success criteria:
- Collector logs confirm OTLP export with no errors
- Your OTLP platform shows logs from
service_name = "ms-teams-agent" - Event families (
MSTeams_CallRecords_*) are visible in the platform
❌ If this fails:
- Re-run
validateandtest-connection - Verify OTLP endpoint URL and authentication headers
- Collector Troubleshooting