Commit Graph

15 Commits

Author SHA1 Message Date
Chris Crone d154c41586 Update copyright
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-09-22 12:13:00 +02:00
Guillaume Tardif 6f19bbfd5e We can’t anymore “fire and forget”, now that metrics get posted right at the end, most of the time we’d loose them.
Give it max 50 ms to post metrics, that’s plenty, post call ends in ~2 ms or less when desktop is up, less than one ms to fail the post when DD is not listening.

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-18 15:57:02 +02:00
Guillaume Tardif a71b2a39bd Add status field in API metrics
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-18 15:22:34 +02:00
Guillaume Tardif 3ccc603461 Add status field in CLI metrics : success, failure, cancelled
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-18 10:47:50 +02:00
Guillaume Tardif e56061d27c Move fire and forget code from metrics.Track() (used only by CLI) to metrics.Send (used by both CLI and API)
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
2020-09-15 17:28:23 +02:00
Djordje Lukic 2570ebec86 Add interceptor for API metrics, ensure registered methods have a corresponding method set for metrics
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
2020-09-15 17:16:10 +02:00
Chris Crone 4c6280b0e9 Rename docker/api -> docker/compose-cli
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-08-21 17:28:39 +02:00
Guillaume Tardif f442eafe0b Validate run restart option value. Default value is “none”, instead of “no”, this is more in line with compose values, and changes only the default so should not have too much impact on legacy usage. 2020-08-04 17:11:21 +02:00
Christopher Crone 326e8116d1 metrics: Fix test name, move to gotest.tools
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-07-31 18:51:02 +02:00
Djordje Lukic 188dc1b06c Metrics for azure commands
* docker context create aci
* docker login azure
2020-07-06 11:51:11 +02:00
Djordje Lukic c4c0c24dca
Merge pull request #335 from docker/fix-metrics-goroutine
Make sure the metrics goroutine is scheduled
2020-07-03 15:01:14 +02:00
Djordje Lukic 159b9d0cfb Make sure the metrics goroutine is scheduled
Wait for the goroutine to be scheduled before exiting. We don't wait for
the metrics event to be sent, we only make sure the goroutine is called.
2020-07-03 14:58:47 +02:00
Djordje Lukic a97a26bfc3 Implement metrics for `docker scan` 2020-07-03 11:24:00 +02:00
Djordje Lukic 3a1cb0aaa0 Add ecs as a management command
This, with the "compose" being a management command makes it possible to
track ecs usage. See tests for more info
2020-07-01 15:18:35 +02:00
Djordje Lukic 0c1f0f81df Usage metrics
Send usage to Docker Desktop
2020-06-23 16:52:52 +02:00