diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 80155c5..c4f96a7 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -31,6 +31,11 @@ jobs: touch ./application.yml echo "${{ secrets.APPLICATION_YAML }}" | base64 --decode > ./application.yml shell: bash + - name: Set Pinpoint Ip + run: | + cd ./pinpoint-agent-2.5.3/profiles/release + sed -i 's/127.0.0.1/${{ secrets.PINPOINT_IP }}/g' pinpoint.config + shell: bash # Gradle 빌드 (테스트 제외) - name: Build with Gradle run: ./gradlew clean build -x test diff --git a/Dockerfile b/Dockerfile index de96791..c4ad357 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,5 +4,6 @@ ARG JAR_FILE=build/libs/*-SNAPSHOT.jar ARG PINPOINT_AGENT_DIR=pinpoint-agent-2.5.3 COPY ${JAR_FILE} app.jar COPY ${PINPOINT_AGENT_DIR} /pinpoint-agent +ENV TZ=Asia/Seoul ENTRYPOINT ["java", "-jar", "-javaagent:/pinpoint-agent/pinpoint-bootstrap-2.5.3.jar", "-Dpinpoint.agentId=modoospace-release", "-Dpinpoint.applicationName=modoospace-release", "-Dpinpoint.profiler.profiles.active=release", "app.jar"] diff --git a/pinpoint-agent-2.5.3/profiles/release/pinpoint.config b/pinpoint-agent-2.5.3/profiles/release/pinpoint.config index d573648..995c0ea 100644 --- a/pinpoint-agent-2.5.3/profiles/release/pinpoint.config +++ b/pinpoint-agent-2.5.3/profiles/release/pinpoint.config @@ -17,13 +17,13 @@ profiler.transport.module=GRPC ########################################################### # gRPC Configuration # ########################################################### -profiler.transport.grpc.collector.ip=124.56.60.125 +profiler.transport.grpc.collector.ip=127.0.0.1 ########################################################### # Thrift Configuration # ########################################################### -profiler.collector.ip=124.56.60.125 +profiler.collector.ip=127.0.0.1 ########################################################### @@ -35,7 +35,7 @@ profiler.enable=true # Differentiate from external pinpoint agents. (e.g., com.pinpoint) profiler.application.namespace= -profiler.interceptorregistry.size=8192 +profiler.interceptorregistry.size=65536 # Manually override jvm vendor name (Oracle, IBM, OpenJDK, etc) # You probably won't ever need to set this value. @@ -65,14 +65,14 @@ profiler.sampling.type=COUNTING # if it's COUNTING(the default), then 1 out of n transactions will be sampled where n is the rate. # eg. 1: 100% 20: 5% 50: 2% 100: 1% -profiler.sampling.counting.sampling-rate=20 +profiler.sampling.counting.sampling-rate=1 # @Deprecate : Alias for profiler.sampling.counting.sampling-rate -#profiler.sampling.rate=20 +#profiler.sampling.rate=1 # if it's PERCENT, then first x transactions out of y transactions will be sampled. # Support from 100% to 0.01% # eg. 100: 100% 50: 50% 5: 5% 0.01: 0.01% -profiler.sampling.percent.sampling-rate=5 +profiler.sampling.percent.sampling-rate=100 # Permits per second, if throughput is 0, it is unlimited. # "New" is a transaction that is newly traced.