MSD-LIVE / issues

0 stars 0 forks source link

Log Notebook Launches to AWS CloudWatch #219

Open ghost opened 2 months ago

ghost commented 2 months ago

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.