Add custom dashboard for server stats and tool calls#23
Merged
pamelafox merged 6 commits intoAzure-Samples:mainfrom Dec 17, 2025
Merged
Add custom dashboard for server stats and tool calls#23pamelafox merged 6 commits intoAzure-Samples:mainfrom
pamelafox merged 6 commits intoAzure-Samples:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a custom Azure Portal dashboard for monitoring MCP server statistics and tool calls, addressing issue #15. The dashboard provides visualizations for tool call counts, success rates, latency percentiles, and per-tool usage metrics using KQL queries against Application Insights telemetry data. Additionally, it optimizes infrastructure by conditionally creating Cosmos DB containers only when authentication is enabled.
- Adds custom Azure Portal dashboard with charts for tool metrics (counts, success/error rates, latency percentiles, and per-tool breakdowns)
- Conditionally creates auth-related Cosmos DB containers only when authentication is enabled (Keycloak or Entra OAuth Proxy)
- Updates documentation to explain how to access the dashboard via
azd monitor
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| infra/appinsights-dashboard.bicep | New Bicep module defining Azure Portal dashboard with 10 tiles visualizing MCP tool call metrics and server performance using KQL queries |
| infra/main.bicep | Adds authEnabled variable and conditionally creates Cosmos DB containers for user-expenses and oauth-clients only when auth is enabled; integrates dashboard module |
| servers/opentelemetry_middleware.py | Removes historical comment about PR #2083 that's no longer needed |
| README.md | Documents azd monitor command to access the dashboard and clarifies Application Insights access steps |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
madebygps
reviewed
Dec 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #15
After this change, you can run "azd monitor" to see this custom dashboard pop-up:
The tool call charts are based off KQL queries based off the gen_ai attribute names.