ecs-logs already has the ability to send metrics to statsd, but services that wish to produce more complex metrics have to include a statsd client library and produce their own.
The ecs-logs format could be extended with a metrics field that contains a list of metrics the ecs-logs would be in charge of forwarded to the configured destinations that support it.
Here's a list of the potential benefits:
standardize metrics collection
no extra dependency required on the service to produce metrics
ecs-logs logging libraries can automatically collect service metrics from within the processes
sending metrics data to different tools becomes trivial
ecs-logs already has the ability to send metrics to statsd, but services that wish to produce more complex metrics have to include a statsd client library and produce their own.
The ecs-logs format could be extended with a
metrics
field that contains a list of metrics the ecs-logs would be in charge of forwarded to the configured destinations that support it.Here's a list of the potential benefits: