We need to add a metric to AWS CloudWatch which tracks notebook launches. The metric should be logged from the /claim-instance route of the warm pool API. It should be the first thing the route handler does.
The actual code to log the metric should go in MetricService. The metric should be called NotebookLaunch and have two dimensions: BuildType (e.g. prod or dev) and DeploymentName (e.g. rgcam, gcamwrapper, etc.). The metric should have the namespace "WarmPool". Each launch should log a count of 1.
We need to add a metric to AWS CloudWatch which tracks notebook launches. The metric should be logged from the
/claim-instance
route of the warm pool API. It should be the first thing the route handler does.The actual code to log the metric should go in MetricService. The metric should be called
NotebookLaunch
and have two dimensions:BuildType
(e.g. prod or dev) andDeploymentName
(e.g. rgcam, gcamwrapper, etc.). The metric should have the namespace "WarmPool". Each launch should log a count of 1.