Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3258319649 | ||
|
|
9ad94b1460 | ||
|
|
8ca496cd66 | ||
|
|
107f520548 | ||
|
|
2f096cc6ce | ||
|
|
578d964582 | ||
|
|
c2e3c3ed00 |
2
.env
2
.env
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
|
||||
# Used to make collector ip fixed for external microservices which uses pinpoint agent with collector ip.
|
||||
|
||||
50
Readme.md
50
Readme.md
@@ -12,6 +12,11 @@ Installing Pinpoint with these docker files will take approximately 10min. to ch
|
||||
It supports and helps you understand your application in a glance and allow you to build world-class, high-quality software.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3-metric (for web and collector)
|
||||
- 2.5.3
|
||||
- 2.5.2-metric (for web and collector)
|
||||
- 2.5.2
|
||||
- 2.5.1-metric (for web and collector)
|
||||
- 2.5.1
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
@@ -56,33 +61,50 @@ git clone https://github.com/pinpoint-apm/pinpoint-docker.git
|
||||
cd pinpoint-docker
|
||||
docker-compose pull && docker-compose up -d
|
||||
```
|
||||
If you'd like to bring up a previous release. Try with docker-compose file from other tags.
|
||||
|
||||
Since [Pinpoint v2.5.0](https://github.com/pinpoint-apm/pinpoint/releases/tag/v2.5.0), URI Metric and Infrastructure Metric are added.
|
||||
These need Apache Pinot cluster to work and [docker-compose-metric.yml](https://github.com/pinpoint-apm/pinpoint-docker/blob/master/docker-compose-metric.yml) has been added to provide them.
|
||||
To use URI Metric and Infrastructure Metric, include `docker-compose-metric.yml` to bring up Pinpoint containers as decribed below.
|
||||
|
||||
```
|
||||
git clone https://github.com/pinpoint-apm/pinpoint-docker.git
|
||||
cd pinpoint-docker
|
||||
docker-compose pull
|
||||
docker-compose -f docker-compose.yml -f docker-compose-metric.yml up -d
|
||||
```
|
||||
|
||||
Docker images for Pinpoint web and Pinpoint collector is provided since **v2.5.1**, so above wouldn't work with v2.5.0 images.
|
||||
To use Pinpoint v2.5.0 metric modules, you need to checkout v2.5.0 and then build the images ahead with below command.
|
||||
|
||||
```
|
||||
git clone https://github.com/pinpoint-apm/pinpoint-docker.git
|
||||
cd pinpoint-docker
|
||||
git checkout {tag}
|
||||
docker-compose pull && docker-compose up -d
|
||||
docker-compose -f docker-compose.yml -f docker-compose-metric.yml build
|
||||
```
|
||||
|
||||
You can also build the image with `docker-compose up -d` command without pulling the image. But you can reduce the time to 1/3 by just downloading them.
|
||||
If you are not interested in metric modules, simply remove `-f docker-compose-metric.yml` in docker-compose commands.
|
||||
|
||||
This will install and run all services required to run all features in Pinpoint in docker containers joined with same network.
|
||||
- Pinpoint-Web Server
|
||||
- Pinpoint-Collector
|
||||
- Pinpoint-Agent
|
||||
- Pinpoint-Flink(to support certain feature)
|
||||
- Pinpoint-Zookeeper
|
||||
- Pinpoint-Hbase
|
||||
- Pinpoint-QuickStart(a sample application, 1.8.1+)
|
||||
- Pinpoint-Mysql(to support certain feature)
|
||||
- Pinpoint-Batch
|
||||
This may take several minutes to download all necessary images.
|
||||
Below are the list of images provided by this project:
|
||||
- [Pinpoint-Web Server](https://hub.docker.com/r/pinpointdocker/pinpoint-web)
|
||||
- [Pinpoint-Collector](https://hub.docker.com/repository/docker/pinpointdocker/pinpoint-collector/)
|
||||
- [Pinpoint-Agent](https://hub.docker.com/r/pinpointdocker/pinpoint-agent)
|
||||
- [Pinpoint-Flink](https://hub.docker.com/r/pinpointdocker/pinpoint-flink)
|
||||
- [Pinpoint-Hbase](https://hub.docker.com/r/pinpointdocker/pinpoint-hbase)
|
||||
- [Pinpoint-QuickStart](https://hub.docker.com/r/pinpointdocker/pinpoint-quickstart): a sample application, v1.8.1+
|
||||
- [Pinpoint-Mysql](https://hub.docker.com/r/pinpointdocker/pinpoint-mysql)
|
||||
- [Pinpoint-Batch](https://hub.docker.com/r/pinpointdocker/pinpoint-batch): v2.4.0+
|
||||
|
||||
You can replace `QuickStart` application part with your application to start monitoring.
|
||||
- check [`Testing QuickStart application`](#testing-quickstart-application) for a quick demo of pinpoint
|
||||
- check [`Monitoring YOUR Application`](#monitoring-your-application) part for further details
|
||||
|
||||
Below are the list of images required for this project:
|
||||
- [Apache Zookeeper v3.4.13](https://hub.docker.com/_/zookeeper/tags?page=1&name=3.4.13): For Hbase and Pinpoint cluster
|
||||
- [Apache Zookeeper v3.8.0](https://hub.docker.com/_/zookeeper/tags?page=1&name=3.8.0): For Pinot cluster
|
||||
- [Apache Pinot](https://hub.docker.com/r/apachepinot/pinot): Tested with v0.11.0 ~ v0.13.0. Please refer to `pinot-init` in `docker-compose-metric.yml` to further see tables and schema information for Pinpoint.
|
||||
- [Kafka](https://hub.docker.com/r/ubuntu/kafka): Currently using 3.1-22.04_beta. Please refer to `pinpoint-kafka-init` in `docker-compose-metric.yml` to further see topics needed for Pinpoint.
|
||||
|
||||
### Mysql (optional, 1.8.1+)
|
||||
|
||||
The Pinpoint-Mysql is necessary to use 'Alarm' feature. It's server is running on port 13306 and contains the data structure used to register users, groups, and alerts to be sent.
|
||||
|
||||
@@ -102,6 +102,8 @@ services:
|
||||
- ZOOKEEPER_HOST=pinot-zoo
|
||||
networks:
|
||||
- pinpoint
|
||||
volumes:
|
||||
- pinot-kafka-volume:/var/lib/kafka/data
|
||||
|
||||
pinpoint-kafka-init:
|
||||
image: ubuntu/kafka:3.1-22.04_beta
|
||||
@@ -128,6 +130,8 @@ services:
|
||||
- "9000:9000"
|
||||
networks:
|
||||
- pinpoint
|
||||
volumes:
|
||||
- pinot-controller-volume:/tmp/data/controller
|
||||
|
||||
pinot-broker-0:
|
||||
image: apachepinot/pinot:latest
|
||||
@@ -150,6 +154,8 @@ services:
|
||||
- "8098"
|
||||
networks:
|
||||
- pinpoint
|
||||
volumes:
|
||||
- pinot-server-volume:/tmp/data/server
|
||||
|
||||
pinot-init:
|
||||
image: apachepinot/pinot:latest
|
||||
@@ -166,7 +172,7 @@ services:
|
||||
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-dataType-schema.json > dataTypeSchema.json &&
|
||||
|
||||
sed -i 's/localhost:19092/pinpoint-kafka:9092/g' uriStatTable.json tagTable.json doubleTable.json dataTypeTable.json &&
|
||||
sed -i 's/"replicasPerPartition": "[0-9*]"/"replicasPerPartition": "1"/g' uriStatTable.json tagTable.json doubleTable.json dataTypeTable.json &&
|
||||
sed -i 's/.*replicasPerPartition.*/ \"replicasPerPartition\": \"1\",/g' uriStatTable.json tagTable.json doubleTable.json dataTypeTable.json &&
|
||||
|
||||
/opt/pinot/bin/pinot-admin.sh AddTable -schemaFile uriStatSchema.json -realtimeTableConfigFile uriStatTable.json -controllerHost pinot-controller -controllerPort 9000 -exec &&
|
||||
/opt/pinot/bin/pinot-admin.sh AddTable -schemaFile tagSchema.json -realtimeTableConfigFile tagTable.json -controllerHost pinot-controller -controllerPort 9000 -exec &&
|
||||
@@ -186,6 +192,9 @@ services:
|
||||
- "2181"
|
||||
networks:
|
||||
- pinpoint
|
||||
volumes:
|
||||
- pinot-zoo-data:/data
|
||||
- pinot-zoo-datalog:/datalog
|
||||
|
||||
telegraf:
|
||||
image: telegraf:1.25.0
|
||||
@@ -197,4 +206,11 @@ services:
|
||||
sh -c "
|
||||
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/telegraf/pinpoint-telegraf.conf > telegraf.conf &&
|
||||
sed -i 's/127.0.0.1/pinpoint-collector/g' telegraf.conf &&
|
||||
telegraf -config telegraf.conf"
|
||||
telegraf -config telegraf.conf"
|
||||
|
||||
volumes:
|
||||
pinot-zoo-data:
|
||||
pinot-zoo-datalog:
|
||||
pinot-server-volume:
|
||||
pinot-controller-volume:
|
||||
pinot-kafka-volume:
|
||||
@@ -1,5 +1,5 @@
|
||||
### Pinpoint with Java
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
AGENT_ID=java-app-in-docker
|
||||
APP_NAME=JavaAttachExample
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
### Pinpoint with Tomcat
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
APP_PORT=8085
|
||||
AGENT_ID=app-in-docker
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
|
||||
### Pinpoint-Agent
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM alpine:3.7
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
||||
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/
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
|
||||
### Pinpoint-Batch
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM openjdk:11.0.16-jre-slim-buster
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-batch-${PINPOINT_VERSION}.jar
|
||||
|
||||
RUN mkdir -p /pinpoint/config \
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
This Docker image contains the Pinpoint Batch component of the Pinpoint application monitoring system.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3
|
||||
- 2.5.2
|
||||
- 2.5.1
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
|
||||
### Pinpoint-Collector
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM openjdk:11.0.16-jre-slim-buster
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-boot-${PINPOINT_VERSION}.jar
|
||||
|
||||
RUN mkdir -p /pinpoint/config \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM openjdk:11.0.16-jre-slim-buster
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.0}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
#ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-starter-boot-${PINPOINT_VERSION}.jar
|
||||
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-starter-boot-${PINPOINT_VERSION}.jar
|
||||
|
||||
|
||||
@@ -4,7 +4,12 @@
|
||||
This Docker image contains the Pinpoint Collector component of the Pinpoint application monitoring system.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3-metric
|
||||
- 2.5.3
|
||||
- 2.5.2
|
||||
- 2.5.2-metric
|
||||
- 2.5.1
|
||||
- 2.5.1-metric
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
- 2.4.1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
|
||||
### Pinpoint-flink
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
FROM flink:1.14-java11
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-flink-job-${PINPOINT_VERSION}.jar
|
||||
|
||||
RUN apt-get update \
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
This Docker image contains the Pinpoint Flink component of the Pinpoint application monitoring system.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3
|
||||
- 2.5.2
|
||||
- 2.5.1
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
|
||||
PINPOINT_VERSION=2.5.3
|
||||
HBASE_VERSION=1.2.6
|
||||
### Pinpoint-Hbase
|
||||
|
||||
PINPOINT_HBASE_NAME=pinpoint-hbase
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
FROM openjdk:8u342-slim
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
ARG HBASE_VERSION=${HBASE_VERSION:-1.2.6}
|
||||
|
||||
ENV HBASE_REPOSITORY=http://apache.mirrors.pair.com/hbase
|
||||
ENV HBASE_SUB_REPOSITORY=http://archive.apache.org/dist/hbase
|
||||
|
||||
ENV HBASE_VERSION=1.2.6
|
||||
ENV BASE_DIR=/opt/hbase
|
||||
ENV HBASE_HOME=${BASE_DIR}/hbase-${HBASE_VERSION}
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
This Docker image contains the Pinpoint Hbase component of the Pinpoint application monitoring system.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3
|
||||
- 2.5.2
|
||||
- 2.5.1
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
|
||||
### Pinpoint-mysql
|
||||
MYSQL_ROOT_PASSWORD=root123
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM mysql:8.0
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
|
||||
RUN curl -SL "https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v$PINPOINT_VERSION/web/src/main/resources/sql/CreateTableStatement-mysql.sql" -o /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql \
|
||||
&& curl -SL "https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v$PINPOINT_VERSION/web/src/main/resources/sql/SpringBatchJobRepositorySchema-mysql.sql" -o /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql \
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
This Docker image contains the Pinpoint Mysql component of the Pinpoint application monitoring system.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3
|
||||
- 2.5.2
|
||||
- 2.5.1
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
|
||||
### Pinpoint-Agent
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PINPOINT_VERSION=2.5.1
|
||||
PINPOINT_VERSION=2.5.3
|
||||
SPRING_PROFILES=release
|
||||
|
||||
### Pinpoint-Web
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM openjdk:11.0.16-jre-slim-buster
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.1}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-web-boot-${PINPOINT_VERSION}.jar
|
||||
|
||||
RUN mkdir -p /pinpoint/config \
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM openjdk:11.0.16-jre-slim-buster
|
||||
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.0}
|
||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-web-starter-boot-${PINPOINT_VERSION}.jar
|
||||
|
||||
RUN mkdir -p /pinpoint/config \
|
||||
|
||||
@@ -4,7 +4,12 @@
|
||||
This Docker image contains the Pinpoint Web component of the Pinpoint application monitoring system.
|
||||
|
||||
## Supported Tags
|
||||
- 2.5.3-metric
|
||||
- 2.5.3
|
||||
- 2.5.2
|
||||
- 2.5.2-metric
|
||||
- 2.5.1
|
||||
- 2.5.1-metric
|
||||
- 2.5.0
|
||||
- 2.4.2
|
||||
- 2.4.1
|
||||
|
||||
Reference in New Issue
Block a user