Metrics
It is possible to export custom user metrics by adding the metrics_client
argument to the task definition constructor. Below there is an example of how to use the metrics client.
Currently, it is only possible to instantiate the metrics client from a class task definition.
Refer to the observability documentation for more information on custom metrics.
Note: The metrics client uses the UDP protocol to push metrics, to be fault tolerant, so if it fails during a metrics push there is no exception thrown.
Last updated