Azure-Samples / Azure-Samples/simple-foundry-hosted-agent-python-aigateway

Update AI Gateway monitoring to use the current OpenTelemetry configuration

オープン
#9 コメント 0 件 リアクション 0 件 担当者 0 名 @paulyuk が担当を希望しています GitHub で見る
主要言語
Shell
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

### Problem

The sample currently configures `telemetryExporters` with `kind: applicationInsights` and an Application Insights connection string. The current AI Gateway monitoring experience expects the native OTLP/OpenTelemetry configuration, so the portal does not reliably recognize this legacy exporter as monitoring-enabled.

### Missing configuration

- Register the `Microsoft.Monitor` resource provider.
- Set `AzureMonitorWorkspaceIngestionMode: Enabled` on the workspace-based Application Insights resource.
- Wait for Application Insights to generate its managed DCR/DCE and OTLP endpoints.
- Configure the exporter with `kind: OpenTelemetry`, the Application Insights resource ID, metrics/logs/traces OTLP endpoints, and managed-identity audience `https://monitor.azure.com`.
- Assign the AI Gateway system-assigned identity the **Monitoring Metrics Publisher** role (`3913510d-42f4-4e42-8a64-420c390055eb`) at the generated DCR scope.
- Account for the deny assignment on the generated managed resource group: a nested ARM/Bicep role assignment is blocked, while a direct role-assignment PUT from an `azd` post-provision hook works.
- Document that exporter `kind` is immutable, requiring delete/recreate when migrating an existing legacy exporter.

### Current preview behavior

The service currently persists metrics and logs endpoints but may omit a supplied `tracesEndpoint` from exporter GET responses. Metrics and logs are sufficient for the portal dashboard eligibility check.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まずサンプルの AI Gateway exporter と Azure プロビジョニング構成を見つけ、次に workspace ベースの Application Insights リソースと azd post-provision hook がどのように定義されているかを追跡します。現在の OpenTelemetry エンドポイント、provider と workspace の設定、managed identity のロール割り当て、移行動作、preview レスポンスに関する注意事項が反映され、文書化されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure
領域
cloud, infrastructure, observability-sre
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。