Details
Description
When using Slider to manage long running service and Metric2 sink to collect metrics of those long running service, user could use metrics attributes of AppName, ComponentName and HostName to associate a metric record to an service instance.
It works well if there is only one instance in each host. However if multiple instances of the service are running in the same host, the tuple of (AppName, ComponentName, Hostname) is not enough to identify an service instance uniquely.
If Slider supports YARN ContainerID as Environment Variable for Slider Application Instance just like COMPONENT_NAME, user could configure CONTAINER_ID as configuration parameter for Metric2 sink. In that way, the metrics attribute of ContainerID could be used to associate a metric record to an service instance uniquely.