Statistics API
Endpoints for querying agent activity analytics, growth metrics, and daily work journals.Daily Journal
Retrieve a consolidated view of all agent activity for a specific day.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | Yes | Date in YYYY-MM-DD format |
agent_id | string | No | Filter by specific agent ID |
Response
Data Sources
The journal aggregates data from 6 existing sources without any additional storage:| Source | Data |
|---|---|
| Chat | Session metadata (title, source, timestamps) |
| Message | Token counts and cost per session |
| ApprovalRecord | Human approval events |
| CronRunModel | Scheduled task executions |
| KanbanTaskEventModel | Kanban board events |
| EventLog | Tool call counts (file-based) |
Error Responses
| Code | Description |
|---|---|
| 400 | Invalid date format (must be YYYY-MM-DD) |
| 400 | Missing date parameter |
Growth Statistics
Growth dashboard metrics are available through the GUI and provide:- Skill KPI summary (total, success rate, evolution count)
- Usage heat maps and capability radar charts
- Weekly trend analysis
- Evolution timeline
Harness Observability Metrics (Prometheus)
The Myrm Engine exposes underlying Prometheus telemetry metrics for deep DevOps & SRE monitoring. These metrics run on the/metrics endpoint and incur zero operational overhead.
Advanced Agent Metrics
myrm_time_to_first_action_seconds(Histogram): Captures the precise Time-To-First-Action (TTFA), calculating the exact time from receiving a user’s instruction until the agent invokes its first tool.myrm_policy_denial_total(Counter): Tracks the number of times agent actions were blocked, redacted, or denied by the Security Guardrails and Path Policies.myrm_tool_execution_total&myrm_tool_execution_failed_total(Counters): Monitors execution results for all individual skills, providing real-time data for calculating the overall “Tool Effectiveness Ratio” on Grafana dashboards.

