Skip to content

Commit

Permalink
Merge pull request #51 from f-lab-edu/feature/50-pinpoint
Browse files Browse the repository at this point in the history
[#50] Pinpoint 환경 구축
  • Loading branch information
hoa0217 authored Mar 10, 2024
2 parents 7263fa6 + fac30e1 commit dec01b0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
12 changes: 6 additions & 6 deletions pinpoint-agent-2.5.3/profiles/release/pinpoint.config
Original file line number Diff line number Diff line change
Expand Up @@ -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


###########################################################
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit dec01b0

Please sign in to comment.