We are running APM in Docker containers and we would like to extend the metric set to include a custom metric of our own. This will pull back the container ID from the environment.
Do you have any guidelines on how we can achieve this?
e.g. within our container, we have an environment variable "hostname" this is equal to the container id.
We do not want to use the container ID as the agent name because we will fill up smartstore metadata with unnecessary short lived agents!