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

How to launch pinpoint agent #8919

Open krystophe opened 2 years ago

krystophe commented 2 years ago

Hi,

I have a problem and I don't understand how to monitor my php app and mariadb.

I try this and it's work

Tomcat Example

Add -javaagent, -Dpinpoint.agentId, -Dpinpoint.applicationName to CATALINA_OPTS in the Tomcat startup script (catalina.sh).

CATALINA_OPTS="$CATALINA_OPTS -javaagent:$AGENT_PATH/pinpoint-bootstrap-$VERSION.jar" CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.agentId=$AGENT_ID" CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.applicationName=$APPLICATION_NAME"

As I can see in the directory of the pinpoint agent $AGENT_PATH/plugin there are lots of plugins

Could you help me to set up this ?

dv-morais commented 2 years ago

I'm confused... what are you trying to monitor? a tomcat or php?

krystophe commented 2 years ago

Hi,

I don’t understand how can I configure pinpoint to have metrics about php and mariadb applications.

Now I can just monitor tomcat with the example given in the documentation

dv-morais commented 2 years ago

Hi, I don’t understand how can I configure pinpoint to have metrics about php and mariadb applications. Now I can just monitor tomcat with the example given in the documentation

https://github.com/pinpoint-apm/pinpoint-c-agent