pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.29k stars 3.75k forks source link

Unable to configure pinpoint on docker container application #9106

Open shaisthajabeen610 opened 1 year ago

shaisthajabeen610 commented 1 year ago
dv-morais commented 1 year ago

@shaisthajabeen610 if you dont detail your problem we wont be able to help.

shaisthajabeen610 commented 1 year ago

Hi all,

I am trying to configure Pinpoint on my java application container, to monitor application using Pinpoint.

I have downloaded pinpoint agent in the container. and then tried to run -javaagent:$AGENT_PATH/pinpoint-bootstrap-$VERSION.jar

I got error after running javaagent. please find below screenshot.

image

Is there anything I missed,

Help is really appreciated

ga-ram commented 1 year ago

You should configure your ApplicationName with -Dpinpoint.applicationName=${APP_NAME} option. Please see JAVA_OPTS in docker-compose file.

Screen Shot 2022-08-09 at 10 49 35 AM
shaisthajabeen610 commented 1 year ago

Hi Ram,

This is my repo https://github.com/shaisthajabeen610/smartopsdemo.git

Please let me know what else changes are need to be done.

Thanks in advance

dv-morais commented 1 year ago

@shaisthajabeen610

It seems the smartops-server.tar.gz is a tomcat.

My suggestion would be create a file called setenv.sh inside the bin folder of your tomcat.

Inside it you should put your agent properties as already described by @ga-ram

CATALINA_OPTS="$CATALINA_OPTS -javaagent:/..."