Compare commits
No commits in common. "main" and "master" have entirely different histories.
|
@ -172,6 +172,29 @@ services:
|
||||||
max-file: "3"
|
max-file: "3"
|
||||||
max-size: "10m"
|
max-size: "10m"
|
||||||
|
|
||||||
|
pinpoint-quickstart:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-quickstart/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
container_name: "pinpoint-quickstart"
|
||||||
|
image: "pinpointdocker/pinpoint-quickstart"
|
||||||
|
ports:
|
||||||
|
- "${APP_PORT:-8085}:8080"
|
||||||
|
volumes:
|
||||||
|
- data-volume:/pinpoint-agent
|
||||||
|
environment:
|
||||||
|
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dpinpoint.profiler.profiles.active=${SPRING_PROFILES}"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-agent
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
pinpoint-batch:
|
pinpoint-batch:
|
||||||
build:
|
build:
|
||||||
context: ./pinpoint-batch/
|
context: ./pinpoint-batch/
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
|
### Pinpoint-Agent
|
||||||
|
|
||||||
|
PINPOINT_AGENT_NAME=pinpoint-agent
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
||||||
|
# Sampling Configurations
|
||||||
|
PROFILER_SAMPLING_TYPE=COUNTING
|
||||||
|
PROFILER_SAMPLING_COUNTING_SAMPLING_RATE=1
|
||||||
|
PROFILER_SAMPLING_PERCENT_SAMPLING_RATE=100
|
||||||
|
PROFILER_SAMPLING_NEW_THROUGHPUT=0
|
||||||
|
PROFILER_SAMPLING_CONTINUE_THROUGHPUT=0
|
||||||
|
|
||||||
|
AGENT_ID=app-in-docker
|
||||||
|
APP_NAME=quickapp
|
||||||
|
|
||||||
|
AGENT_DEBUG_LEVEL=INFO
|
||||||
|
|
||||||
|
|
||||||
|
### Pinpoint-quickstart
|
||||||
|
|
||||||
|
APP_PORT=8085
|
|
@ -0,0 +1,12 @@
|
||||||
|
FROM tomcat:8-jre8
|
||||||
|
|
||||||
|
COPY /build/pinpoint-quickstart-testapp.war quickstart.war
|
||||||
|
|
||||||
|
RUN rm -rf /usr/local/tomcat/webapps \
|
||||||
|
&& mkdir -p /usr/local/tomcat/webapps \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install --no-install-recommends -y unzip\
|
||||||
|
&& unzip quickstart.war -d /usr/local/tomcat/webapps/ROOT \
|
||||||
|
&& rm -rf quickstart.war
|
||||||
|
|
||||||
|
CMD [ "catalina.sh", "run" ]
|
|
@ -0,0 +1,62 @@
|
||||||
|
|
||||||
|
## Pinpoint Quickstart
|
||||||
|
|
||||||
|
This Docker image contains the Pinpoint Quickstart sample to test 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 the [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.
|
||||||
|
```
|
Binary file not shown.
|
@ -0,0 +1,55 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-quickstart:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
container_name: "pinpoint-quickstart"
|
||||||
|
image: "pinpointdocker/pinpoint-quickstart"
|
||||||
|
ports:
|
||||||
|
- "${APP_PORT:-8085}:8080"
|
||||||
|
volumes:
|
||||||
|
- data-volume:/pinpoint-agent
|
||||||
|
environment:
|
||||||
|
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dpinpoint.profiler.profiles.active=${SPRING_PROFILES}"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-agent
|
||||||
|
|
||||||
|
pinpoint-agent:
|
||||||
|
build:
|
||||||
|
context: ../pinpoint-agent/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_AGENT_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-agent:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
volumes:
|
||||||
|
- data-volume:/pinpoint-agent
|
||||||
|
environment:
|
||||||
|
- COLLECTOR_IP=${COLLECTOR_IP}
|
||||||
|
- COLLECTOR_TCP_PORT=${COLLECTOR_TCP_PORT}
|
||||||
|
- COLLECTOR_STAT_PORT=${COLLECTOR_STAT_PORT}
|
||||||
|
- COLLECTOR_SPAN_PORT=${COLLECTOR_SPAN_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}
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
data-volume:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
pinpoint:
|
||||||
|
driver: bridge
|
Loading…
Reference in New Issue