Cian Johnston
d7439a9de0
feat: add Prometheus metrics for chatd subsystem (#24371)
Adds 7 Prometheus metrics to the chatd subsystem and introduces typed
`ActivityBumpReason` for deadline bump attribution.
| Metric | Type | Labels |
|--------|------|--------|
| `coderd_chatd_chats` | Gauge | `state` (streaming, waiting) |
| `coderd_chatd_message_count` | Histogram | `provider` |
| `coderd_chatd_prompt_size_bytes` | Histogram | `provider` |
| `coderd_chatd_tool_result_size_bytes` | Histogram | `provider`,
`tool_name` |
| `coderd_chatd_ttft_seconds` | Histogram | `provider` |
| `coderd_chatd_compaction_total` | Counter | `provider`, `result` |
| `coderd_chatd_steps_total` | Counter | `provider` |
> 🤖
2026-04-15 19:53:10 +01:00
..
2026-02-19 11:45:04 +00:00
2025-07-21 22:02:44 +00:00
2025-08-29 09:34:44 -05:00
2025-06-12 00:52:21 +00:00
2024-12-11 17:48:28 +00:00
2025-08-29 09:34:44 -05:00
2025-02-21 22:58:26 +05:00
2024-10-05 10:52:04 -05:00
2026-04-10 12:49:22 +03:00
2025-03-10 16:58:20 -04:00
2025-02-03 18:06:30 -06:00
2026-04-15 19:53:10 +01:00
2025-06-16 13:18:55 -04:00