Not sure how it's done for OpenShift (I don't have any OpenShift nearby), but you actually can automatically tag services/process groups based on rules. You can use values of docker image name/image version/docker container name in your rules. It quite useful and straightforward, although I've encountered few glitches.
Would this fit your case?
What have you tried so far? That is an environment variable so here is what I found for setting those in docker containers:
I haven't personally played with this yet. It expect it would also pick any set up that way at the docker host level too - not sure what the interaction would be.