Dynatrace-AppMon-Docker icon indicating copy to clipboard operation
Dynatrace-AppMon-Docker copied to clipboard

Dynatrace 7.1 Images

Open rlees85 opened this issue 6 years ago • 7 comments

As Dynatrace AppMon 7.1 was released in April it would be nice to have a Docker image for the Dynatrace Collector (version 7.1).

Edit: Just realised this repository is for more than just the collector. It also applies to dynatrace/agent, dynatrace/server, etc.

rlees85 avatar Jun 21 '18 08:06 rlees85

@rlees85 have you ever had successfully installing/configuring and monitoring the containers via AppMon-Docker ? If yes, can you please provide some guidance?

amit4aws avatar Jun 23 '18 18:06 amit4aws

@kumar4sun we are using Kubernetes - and I followed these instructions:

https://www.dynatrace.com/support/doc/appmon/application-monitoring/monitor-specific-applications/monitor-docker-apps/monitor-dockerized-apps-with-appmon-kubernetes-and-openshift/

The only difference is that for the Java agents, I used the dynatrace/agent image as an initContainer, to load the binaries into a shared volume with the Java application.

Its surprisingly easy, though I am still to tackle Nginx....

rlees85 avatar Jun 24 '18 09:06 rlees85

@rlees85 i am struggling to bring up app mon on docker. I have containerized microservices running on docker which i want to instrument. I have use Appmon on standalone app on JBOSS and very comfortable with it. However had no luck with Docker. Will you be able to assist me with the setup?

amit4aws avatar Mar 14 '20 01:03 amit4aws

I've never used JBOSS, but assume you'd normally instrument it by adding the dynatrace AppMon library to the java command line?

If so I might be able to help, but probably won't be able to provide code as this was a while ago now....

rlees85 avatar Mar 14 '20 12:03 rlees85

Rich Thanks for replying back. Currently i am not doing anything with Jboss but have configured APPMON to work with it in past.

Right now all i am doing is trying to instrument few microserivce containers running on docker by following the instructions provided at https://github.com/Dynatrace/Dynatrace-AppMon-Docker The challenges i am facing is :-

  1. It seems there is some issue with SSL certificate being old with 7.0 and collector is not connecting with Server
  2. Client is not able to connect to server because of the same reason.
  3. Tried to disable the SSL ports from .env file under collector and server folders but still not luck.
  4. No idea how to instrument my sprigboot microservices running on docker container.

I am ok to pay you for your time if you are ok to help me with this.

On Sat, Mar 14, 2020 at 8:26 AM Rich [email protected] wrote:

I've never used JBOSS, but assume you'd normally instrument it by adding the dynatrace AppMon library to the java command line?

If so I might be able to help, but probably won't be able to provide code as this was a while ago now....

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Dynatrace/Dynatrace-AppMon-Docker/issues/26#issuecomment-599051818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH2CXLJO6WQABYHGYTASGJ3RHNZY7ANCNFSM4FGGODGA .

amit4aws avatar Mar 14 '20 14:03 amit4aws

  1. I never really had this problem, it just 'worked'. Are you using a custom certificate on the server? If so you'd need to find out how to make the collector trust it, as Docker containers don't mount trusted CA certificates by default and I would imagine the Dynatrace collector would use a Java key store anyway. If you are using the default Dynatrace certificate you'd need to raise a support ticket probably.

  2. ^^

  3. Sounds related again, I am pretty sure we never disabled the SSL ports.

  4. I assume springboot apps are called using java? If so this is how we did it - assuming you are using Kubernetes:

Add an init_container to your springboot app deployment. The init_container runs the dynatrace/agent image and basically just copies the agent from this image into an empty_dir volume. It does this by overriding command to just run cp.

Your main container then mounts the same empty_dir volume and can load the agent using the -agent-path=/shared-volume/path/to/appmon.so parameter in your java command.

Feel free to paste your deployment YAML here and I can show you what changes need to be made (or send to me directly if you can't post it public). I don't have a working example here due to all the code we had to run AppMon being long-gone.

rlees85 avatar Mar 18 '20 09:03 rlees85

@rlees85 and @kumar4sun the SSL errors that you are facing are probably related to the SSL certificates of AppMon being expired. Please upgrade AppMon or fix it by this link.

However, I also strong recommend to change to Dynatrace (instead of AppMon) to monitor this, specially containers apps. It is so much easier to install (no need to change the image, just install on the host or through Kubernetes Operator) and provide so much more value with the built-in Artificial Intelligence (Davis) that I think you can check more details in the link below:

  • https://www.dynatrace.com/platform/

Tks,

gbc921 avatar Mar 22 '20 05:03 gbc921