Creating custom string metrics within JavaAgent

Discussion created by maddop on Mar 23, 2017
Latest reply on Mar 23, 2017 by Guenter_Grossberger

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!