06 Dec 2017 09:29 AM
Hi,
Is it possible to automatically tag containers running in Docker in the same way as this is done in openshift?
KR Henk
Solved! Go to Solution.
06 Dec 2017 01:08 PM
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?
07 Dec 2017 09:43 AM - last edited on 02 Nov 2022 12:24 PM by andre_vdveen
Hi Julius,
Thx for your reply, I will give you feedback on this next week, I will have a talk with the application developer.
FYI you define tags in a container description, which will be exposed to Dynatrace when running in Openshift environment.
KR Henk
08 Feb 2018 08:09 PM
If you want to use the DT_TAGS option in Docker has nayone had any success getting this to show up in Dynatrace? Where do you need to place the tag for It to be seen. I have tried a few options and it just breaks the container creation. Thanks Brian
08 Feb 2018 08:23 PM
What have you tried so far? That is an environment variable so here is what I found for setting those in docker containers:
https://stackoverflow.com/questions/30494050/how-do-i-pass-environment-variables-to-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.
19 Dec 2022 11:45 AM
Hello @henk_stobbe
{DockerContainerGroupInstance:ContainerName} is one of the available placeholders for tag value when creating automatically applied tags: