Skip to content

Configure AI Gateway native OpenTelemetry monitoring - #26

Draft
Paul Yuknewicz (paulyuk) with Copilot wants to merge 3 commits into
mainfrom
copilot/update-ai-gateway-monitoring
Draft

Paul Yuknewicz (paulyuk) with Copilot wants to merge 3 commits into
mainfrom
copilot/update-ai-gateway-monitoring

Conversation

Copilot AI commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

The legacy Application Insights exporter is not reliably recognized by the AI Gateway monitoring experience. This change configures the native OTLP exporter after Application Insights provisions its managed endpoints and DCR.

  • Bicep: Enable AzureMonitorWorkspaceIngestionMode, remove the legacy inline exporter, and expose the Application Insights, Log Analytics workspace, and Gateway principal IDs.
  • Postprovision hooks: Register Microsoft.Monitor, wait for the managed DCR and ingestion endpoints, and assign Monitoring Metrics Publisher at the DCR scope using a direct ARM PUT. Configure the OpenTelemetry exporter with the resource ID, signal endpoints, and managed identity audience:
    {
      "kind": "OpenTelemetry",
      "openTelemetry": {
        "metricsEndpoint": "<metrics endpoint>",
        "logsEndpoint": "<logs endpoint>",
        "tracesEndpoint": "<traces endpoint>",
        "managedIdentity": { "resource": "https://monitor.azure.com" }
      }
    }
  • Migration and docs: Delete an existing exporter before recreating it when its immutable kind is not OpenTelemetry. Document the managed-resource-group deny-assignment constraint and preview behavior where exporter GET responses may omit tracesEndpoint.
  • Coverage: Extend the AI Gateway model-registration test with assertions for ingestion mode, outputs, and hook configuration.

Copilot AI and others added 2 commits October 25, 2026 00:12
Co-authored-by: paulyuk <1968137+paulyuk@users.noreply.github.com>
Co-authored-by: paulyuk <1968137+paulyuk@users.noreply.github.com>
Copilot AI changed the title [WIP] Update AI Gateway monitoring to use OpenTelemetry configuration Configure AI Gateway native OpenTelemetry monitoring Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update AI Gateway monitoring to use the current OpenTelemetry configuration

2 participants