You need to sign in or sign up before continuing.
Add metrics for total number of suspended workspaces
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
MR: Pending
Description
Add metrics for suspended workspaces.
We will use internal event tracking and service ping metric.
The place we trigger events would be at workspace model ee/app/models/remote_development/workspace.rb
, and we use after_save
hook to inject event trigger. We should make sure even if this tracking method goes wrong, then overall operation still goes well (use rescue block).
For metrics, we should make one metric for tracking all available timeframes, 7d, 28d and all time.
Acceptance criteria
-
Define internal event for tracking workspace suspended -
Trigger this event in workspace model after_save
hook -
Make sure to use rescue
to emit the error with tracking -
Define Service Ping metric for suspended workspaces, using above event data
Implementation plan
NA
Edited by 🤖 GitLab Bot 🤖