Ehab Younes
1126533c31
feat: export workspace last used time to Prometheus ( #31346 )
...
Add an opt-in coderd_workspace_last_used_timestamp_seconds gauge that
reports workspaces.last_used_at, the value the dormancy threshold
measures inactivity from. To enable it, set
--prometheus-collect-workspace-stats or
CODER_PROMETHEUS_COLLECT_WORKSPACE_STATS.
A separate WorkspaceStats collector refreshes the gauge once a minute
in the background from a new GetWorkspaceLastUsedForMetrics query. Each
series has a workspace_id label, so a workspace that reuses a deleted
workspace's name starts a new series. Workspaces owned by deleted users
are excluded.
Closes CLIENT-1065
2026-11-11 15:02:18 +00:00
..
2026-06-26 18:45:37 +02:00
2026-05-22 09:50:01 +02:00
2026-09-17 15:29:21 +00:00
2026-10-28 10:52:35 +02:00
2026-10-29 12:14:34 +02:00
2026-03-16 15:30:25 -05:00
2026-03-26 10:36:40 +00:00
2026-09-11 12:47:55 -07:00
2026-04-07 07:24:53 -07:00
2026-06-22 13:56:29 +02:00
2026-02-06 09:52:17 -07:00
2026-10-21 08:23:28 +00:00
2026-08-18 19:15:30 +02:00
2026-09-25 18:51:54 +10:00
2026-08-24 11:20:25 +01:00
2026-08-24 11:20:26 +01:00
2026-10-06 10:48:07 +02:00
2026-10-13 16:45:44 +07:00
2026-10-05 12:52:10 -04:00
2026-10-19 11:32:26 +00:00
2026-11-09 15:55:18 +11:00
2026-10-27 14:04:37 +03:00
2026-08-19 13:00:31 -08:00
2026-09-11 11:32:15 -05:00
2026-06-02 08:36:01 -06:00
2026-08-16 18:18:02 +05:00
2026-08-10 13:23:14 -07:00
2026-11-10 09:30:21 -08:00
2026-10-01 16:42:51 +02:00
2026-11-03 12:39:30 +11:00
2026-04-26 14:49:10 -07:00
2026-09-22 19:12:27 +00:00
2026-10-13 16:43:15 +00:00
2026-10-29 12:53:50 +00:00
2026-11-09 18:02:55 +00:00
2025-11-20 17:12:25 +01:00
2026-08-24 16:17:55 +02:00
2026-08-11 11:04:51 -05:00
2026-07-28 13:20:59 -07:00
2026-06-24 15:04:04 -04:00
2026-01-12 18:19:19 -08:00
2026-10-29 23:24:18 +01:00
2026-10-29 12:53:50 +00:00
2026-05-01 15:00:08 -05:00
2025-10-28 03:16:41 +11:00
2026-09-17 11:11:38 +10:00
2026-10-15 15:42:33 -07:00
2026-06-24 12:09:22 -05:00
2025-12-12 11:41:46 +00:00
2026-08-28 15:44:31 +07:00
2026-05-22 02:16:01 +02:00
2026-06-16 12:46:10 -07:00
2026-09-02 09:21:36 -07:00
2026-10-23 12:53:40 +11:00
2026-10-15 17:40:00 -05:00
2026-06-15 09:38:52 -07:00
2026-01-30 17:19:19 +00:00
2026-10-19 23:06:41 +03:00
2026-09-10 14:07:03 +02:00
2026-07-14 11:48:31 +10:00
2026-07-07 09:18:30 -07:00
2026-11-03 15:48:10 -06:00
2026-09-11 10:47:43 +02:00
2026-11-11 15:02:18 +00:00
2026-10-13 03:43:55 +00:00