Browse Source

添加pinpoint探针

develop
clong 1 year ago
parent
commit
a09ccc8f8e
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      demo-athenaopt_backend/develop/platform/bin/run.sh

+ 6
- 1
demo-athenaopt_backend/develop/platform/bin/run.sh View File

@ -20,6 +20,11 @@ else
export AGENT_PATH=/agent_pinpoint/pinpoint-bootstrap.jar export AGENT_PATH=/agent_pinpoint/pinpoint-bootstrap.jar
export AGENT_NAME=$pinpoint_appname export AGENT_NAME=$pinpoint_appname
export AGENT_ID=$pinpoint_id export AGENT_ID=$pinpoint_id
export AGENT_OPTS="-javaagent:$AGENT_PATH -Dpinpoint.agentId=$AGENT_ID -Dpinpoint.applicationName=$AGENT_NAME"
if [ -n "$collector_ip" ]; then
export AGENT_COLLECTOR="-Dprofiler.transport.grpc.collector.ip=$collector_ip"
fi
export AGENT_MAIN="-Dprofiler.springboot.bootstrap.main=$MAINCLASS"
export AGENT_OPTS="-javaagent:$AGENT_PATH $AGENT_COLLECTOR -Dpinpoint.agentId=$AGENT_ID -Dpinpoint.applicationName=$AGENT_NAME $AGENT_MAIN"
echo debug: `grep profiler.springboot.bootstrap.main /agent_pinpoint/profiles/release/pinpoint.config`
java $AGENT_OPTS -cp $CLASSPATH @jvmArgs@ $MAINCLASS java $AGENT_OPTS -cp $CLASSPATH @jvmArgs@ $MAINCLASS
fi fi

Loading…
Cancel
Save