docker-archive / compose-cli

Easily run your Compose application to the cloud with compose-cli
Apache License 2.0
956 stars 253 forks source link

metrics: add debug implementation #2219

Closed milas closed 1 year ago

milas commented 1 year ago

Refactor the metrics client slightly to add the concept of a "reporter" that actually sends the metrics.

The primary implementation is HTTP-based as before, but a key difference now is that there's another variant that writes to a file for simplified debugging. This is activated by setting the DOCKER_METRICS_DEBUG_LOG environment variable to a file path to write events to as JSON lines.