Observability & Insights Dashboard
Relevant source files
The following files were used as context for generating this wiki page:
- client/dashboard/src/components/observe/InsightsTools.tsx
- client/dashboard/src/pages/mcp/overview/MCPOverviewTab.tsx
- client/dashboard/src/components/sources/SourceActivityPanel.tsx
- client/dashboard/src/pages/explore/Explore.test.tsx
- server/internal/plugins/platform_mcp_skills/summarize-critical-watchdog-findings/SKILL.md
- client/dashboard/src/components/page-templates/README.md
The Observability & Insights Dashboard provides centralized monitoring for Model Context Protocol (MCP) servers, tool events, and security findings. It enables technical users to track performance metrics, audit tool usage, and investigate security risks across all agents and users in a project.
The system aggregates telemetry from project-wide tool calls and organizes them into functional views. These include high-level project insights, specific MCP server overviews, and granular source activity panels.
Architecture and Data Flow
The dashboard uses a modular architecture driven by React hooks and asynchronous data fetching via @tanstack/react-query. It relies on specialized telemetry functions to retrieve aggregated metrics from the backend.
The diagram above illustrates how the dashboard components construct payloads to request telemetry data for rendering visual insights.
Core Telemetry Functions
The dashboard utilizes several primary functions to populate the insights view:
telemetryGetToolUsageTotals: Retrieves project-wide event counts and summary data.telemetryGetToolUsageTargets: Ranks and groups tool usage by target ID and type.telemetryGetToolUsageTimeSeries: Generates historical data for usage trends.telemetryGetObservabilityOverview: Provides specialized summary metrics like average latency and failure rates.
Sources: [client/dashboard/src/components/observe/InsightsTools.tsx:125-180](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/client/dashboard/src/components/observe/InsightsTools.tsx#L125-L180), [client/dashboard/src/pages/mcp/overview/MCPOverviewTab.tsx:65-80](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/client/dashboard/src/pages/mcp/overview/MCPOverviewTab.tsx#L65-L80)
Monitoring Components
MCP Server Overview
The server overview identifies performance bottlenecks and usage patterns for specific MCP instances. It surfaces Key Performance Indicators (KPIs) through StatTile components.
| Metric | Description | Source Logic |
|---|---|---|
| Tool Calls | Total number of successful and failed tool invocations. | summary.totalToolCalls |
| Failed Calls | Count of tool calls resulting in an error. | summary.failedToolCalls |
| Error Rate | Percentage of calls that failed. | (failed / total) * 100 |
| Avg Latency | The mean response time for tool executions. | summary.avgLatencyMs |
Sources: [client/dashboard/src/pages/mcp/overview/MCPOverviewTab.tsx:165-200](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/client/dashboard/src/pages/mcp/overview/MCPOverviewTab.tsx#L165-L200)
Source Activity Tracking
The SourceActivityPanel displays project-wide calls to specific tools generated from a deployment source. It highlights the source's share of the project's most-called tools.
This sequence shows how individual source activity is extracted from project-wide telemetry results.
Sources: [client/dashboard/src/components/sources/SourceActivityPanel.tsx:85-115](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/client/dashboard/src/components/sources/SourceActivityPanel.tsx#L85-L115)
Security and Risk Insights
Watchdog Findings
The dashboard integrates critical security summaries via the Watchdog system. It focuses on findings detected within a rolling 24-hour window.
- Severity Mapping: Focuses exclusively on
criticalfindings. - Grouping: Aggregates findings by application (
group_by: ["app"]). - Data Integrity: Validates that returned groups match
total_alertsandtotal_countto ensure a non-truncated view.
Sources: [server/internal/plugins/platform_mcp_skills/summarize-critical-watchdog-findings/SKILL.md:25-50](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/server/internal/plugins/platform_mcp_skills/summarize-critical-watchdog-findings/SKILL.md#L25-L50)
Observability Dimensions
The system distinguishes between adoption metrics and infrastructure usage through complementary dimensions:
gram.hook.source: Identifies the agent or client invoking the platform.gram.tool_call.source: Identifies the downstream MCP server handling the request.
Sources: [server/internal/assistants/managed_assistant_instructions.txt:22-26](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/server/internal/assistants/managed_assistant_instructions.txt#L22-L26)
Explore and Custom Dashboards
The Explore workspace provides a bespoke canvas for ad-hoc querying of analytics datasets. It supports multiple visualization types, including line charts, bar charts, and tables.
Data Visualization Capabilities
Users can save specific queries as Widgets and organize them into Dashboards. The builder tracks the state of questions and warns if the current view has changed since the last execution.
The diagram above outlines the workflow for creating custom analytics widgets in the Explore interface.
Sources: [client/dashboard/src/pages/explore/Explore.test.tsx:400-450](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/client/dashboard/src/pages/explore/Explore.test.tsx#L400-L450), [client/dashboard/src/components/page-templates/README.md:15-25](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/client/dashboard/src/components/page-templates/README.md#L15-L25)
Layout and Templates
Dashboards use the WorkbenchPage and OverviewPage templates to maintain design consistency.
- WorkbenchPage: Used for full-bleed analytics surfaces with sticky filter bars.
- OverviewPage: Used for standard dashboards featuring metric rows and chart cards.
Sources: [client/dashboard/src/components/page-templates/README.md:65-80](https://github.com/speakeasy-api/gram/blob/c50770b93553f40fce2977fb0128ca5cb8830d4b/client/dashboard/src/components/page-templates/README.md#L65-L80)
Summary
The Observability & Insights Dashboard centralizes telemetry data to provide a comprehensive view of the Speakeasy AI platform. By combining real-time performance monitoring, source-level activity tracking, and security risk assessment, it enables administrators and developers to maintain stable and secure AI agent operations.