v.2.5.3
This commit is contained in:
47
pinpoint-agent/.env
Normal file
47
pinpoint-agent/.env
Normal file
@@ -0,0 +1,47 @@
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
|
||||
### Pinpoint-Agent
|
||||
|
||||
PINPOINT_AGENT_NAME=pinpoint-agent
|
||||
|
||||
#network module(GRPC,THRIFT)
|
||||
PROFILER_TRANSPORT_MODULE=GRPC
|
||||
|
||||
#collector information required
|
||||
COLLECTOR_IP=
|
||||
PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=9991
|
||||
PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=9991
|
||||
PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=9992
|
||||
PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=9993
|
||||
COLLECTOR_TCP_PORT=9994
|
||||
COLLECTOR_STAT_PORT=9995
|
||||
COLLECTOR_SPAN_PORT=9996
|
||||
|
||||
# Profiler Sampling Configurations
|
||||
# If this value set to COUNTING(default), sampling rate is 1/n.
|
||||
# If this value set to PERCENT, sampling rate is n%.
|
||||
PROFILER_SAMPLING_TYPE=COUNTING
|
||||
|
||||
# depend on profiler.samplging.rate.type,
|
||||
|
||||
# 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=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=100
|
||||
|
||||
# Permits per second, if throughput is 0, it is unlimited.
|
||||
# "New" is a transaction that is newly traced.
|
||||
PROFILER_SAMPLING_NEW_THROUGHPUT=0
|
||||
# "Continue" is a transaction that is already being tracked.
|
||||
PROFILER_SAMPLING_CONTINUE_THROUGHPUT=0
|
||||
|
||||
|
||||
AGENT_ID=app-in-docker
|
||||
APP_NAME=quickapp
|
||||
|
||||
AGENT_DEBUG_LEVEL=INFO
|
||||
22
pinpoint-agent/Dockerfile
Normal file
22
pinpoint-agent/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM alpine:3.7
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-agent-${PINPOINT_VERSION}.tar.gz
|
||||
|
||||
COPY /build/scripts/configure-agent.sh /usr/local/bin/
|
||||
|
||||
RUN apk add --update curl bash \
|
||||
&& chmod a+x /usr/local/bin/configure-agent.sh \
|
||||
&& mkdir -p /pinpoint-agent \
|
||||
&& chmod -R o+x /pinpoint-agent \
|
||||
&& curl -SL ${INSTALL_URL} -o pinpoint-agent.tar.gz \
|
||||
&& gunzip pinpoint-agent.tar.gz \
|
||||
&& tar -xf pinpoint-agent.tar --strip 1 -C /pinpoint-agent \
|
||||
&& rm pinpoint-agent.tar \
|
||||
&& apk del curl \
|
||||
&& rm /var/cache/apk/*
|
||||
|
||||
VOLUME ["/pinpoint-agent"]
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/configure-agent.sh"]
|
||||
CMD ["tail", "-f", "/dev/null"]
|
||||
62
pinpoint-agent/Readme.md
Normal file
62
pinpoint-agent/Readme.md
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
## Pinpoint Agent
|
||||
|
||||
This Docker image contains the Pinpoint Agent component of the Pinpoint application monitoring system.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3
|
||||
- 2.5.2
|
||||
- 2.5.1
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
- 2.4.1
|
||||
- 2.4.0
|
||||
- 2.3.3
|
||||
- 2.3.2
|
||||
- 2.3.1
|
||||
- 2.3.0
|
||||
- 2.2.2
|
||||
- 2.2.1
|
||||
- 2.2.0
|
||||
- 2.1.2
|
||||
- 2.1.0
|
||||
- 2.0.4
|
||||
- 2.0.3
|
||||
- 2.0.2
|
||||
- 2.0.1
|
||||
- 1.8.5
|
||||
- 1.8.4
|
||||
- 1.8.3
|
||||
- 1.8.2
|
||||
- 1.8.1
|
||||
- 1.8.0
|
||||
- 1.7.3
|
||||
- 1.7.2
|
||||
|
||||
Please see [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||
|
||||
## Any Issues or Suggestions?
|
||||
|
||||
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||
Contributions on the pinpoint-docker image is also always welcome.
|
||||
|
||||
## License
|
||||
|
||||
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||
|
||||
```
|
||||
Copyright 2018 NAVER Corp.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
```
|
||||
27
pinpoint-agent/build/scripts/configure-agent.sh
Normal file
27
pinpoint-agent/build/scripts/configure-agent.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
set -x
|
||||
|
||||
#sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/pinpoint.config
|
||||
sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
|
||||
sed -i "/profiler.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
sed -i "/profiler.collector.tcp.port=/ s/=.*/=${COLLECTOR_TCP_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||
sed -i "/profiler.collector.stat.port=/ s/=.*/=${COLLECTOR_STAT_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||
sed -i "/profiler.collector.span.port=/ s/=.*/=${COLLECTOR_SPAN_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||
|
||||
#sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/pinpoint.config
|
||||
sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
sed -i "/profiler.transport.grpc.agent.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||
sed -i "/profiler.transport.grpc.metadata.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||
sed -i "/profiler.transport.grpc.stat.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||
sed -i "/profiler.transport.grpc.span.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||
sed -i "/profiler.sampling.type=/ s/=.*/=${PROFILER_SAMPLING_TYPE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
sed -i "/profiler.sampling.counting.sampling-rate=/ s/=.*/=${PROFILER_SAMPLING_COUNTING_SAMPLING_RATE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
sed -i "/profiler.sampling.percent.sampling-rate=/ s/=.*/=${PROFILER_SAMPLING_PERCENT_SAMPLING_RATE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
sed -i "/profiler.sampling.new.throughput=/ s/=.*/=${PROFILER_SAMPLING_NEW_THROUGHPUT}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
sed -i "/profiler.sampling.continue.throughput=/ s/=.*/=${PROFILER_SAMPLING_CONTINUE_THROUGHPUT}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||
|
||||
sed -i "/Root level=/ s/=.*/=\"${DEBUG_LEVEL}\">/g" /pinpoint-agent/profiles/local/log4j2.xml /pinpoint-agent/profiles/release/log4j2.xml
|
||||
|
||||
exec "$@"
|
||||
43
pinpoint-agent/docker-compose.yml
Normal file
43
pinpoint-agent/docker-compose.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
version: "3.6"
|
||||
|
||||
#pinpoint-agent image will not usually be used alone
|
||||
services:
|
||||
pinpoint-agent:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||
|
||||
container_name: "${PINPOINT_AGENT_NAME}"
|
||||
image: "pinpointdocker/pinpoint-agent:${PINPOINT_VERSION}"
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
- pinpoint-agent
|
||||
environment:
|
||||
- COLLECTOR_IP=${COLLECTOR_IP}
|
||||
- PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}
|
||||
- PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}
|
||||
- PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}
|
||||
- PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}
|
||||
- PROFILER_SAMPLING_TYPE=${PROFILER_SAMPLING_TYPE}
|
||||
- PROFILER_SAMPLING_COUNTING_SAMPLING_RATE=${PROFILER_SAMPLING_COUNTING_SAMPLING_RATE}
|
||||
- PROFILER_SAMPLING_PERCENT_SAMPLING_RATE=${PROFILER_SAMPLING_PERCENT_SAMPLING_RATE}
|
||||
- PROFILER_SAMPLING_NEW_THROUGHPUT=${PROFILER_SAMPLING_NEW_THROUGHPUT}
|
||||
- PROFILER_SAMPLING_CONTINUE_THROUGHPUT=${PROFILER_SAMPLING_CONTINUE_THROUGHPUT}
|
||||
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
|
||||
- PROFILER_TRANSPORT_MODULE=${PROFILER_TRANSPORT_MODULE}
|
||||
networks:
|
||||
- pinpoint
|
||||
|
||||
#networks:
|
||||
# default:
|
||||
# external:
|
||||
# name: pinpoint
|
||||
|
||||
networks:
|
||||
pinpoint:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user