cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

tag docker containers

henk_stobbe
DynaMight Champion
DynaMight Champion

Hi,

Is it possible to automatically tag containers running in Docker in the same way as this is done in openshift?

KR Henk

5 REPLIES 5

Julius_Loman
DynaMight Legend
DynaMight Legend

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?

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

henk_stobbe
DynaMight Champion
DynaMight Champion

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

bcox2
Organizer

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

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.

MaciejNeumann
Community Team
Community Team

Hello @henk_stobbe 

{DockerContainerGroupInstance:ContainerName} is one of the available placeholders for tag value when creating automatically applied tags:

Opera Snapshot_2022-12-19_124437_etu38336.live.dynatrace.com.png

If you have any questions about the Community, you can contact me at maciej.neumann@dynatrace.com

Featured Posts