Compare commits
43 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf73cb8fdc | ||
|
|
29b24254d7 | ||
|
|
0f271a1204 | ||
|
|
958689031c | ||
|
|
c04acf9bca | ||
|
|
cc30618af8 | ||
|
|
477fd5a665 | ||
|
|
e56563c587 | ||
|
|
3ea606f5df | ||
|
|
34cbc98aee | ||
|
|
bbc9d86f72 | ||
|
|
3748be1ab7 | ||
|
|
d26879d8f0 | ||
|
|
bb0667b77a | ||
|
|
3b8638280c | ||
|
|
120e0ebffc | ||
|
|
336efecb9c | ||
|
|
39b9e1e484 | ||
|
|
252f821dee | ||
|
|
76fa2e939e | ||
|
|
9adcc6da1a | ||
|
|
ad0fdb3769 | ||
|
|
d8e87921d3 | ||
|
|
3b4522300d | ||
|
|
3b465caeea | ||
|
|
0cb8666dde | ||
|
|
1e46c9c25b | ||
|
|
c5a34e9d20 | ||
|
|
43dd5bee83 | ||
|
|
35d0b8ecd3 | ||
|
|
9925fb94a3 | ||
|
|
72eab88207 | ||
|
|
372890e46c | ||
|
|
8302dd084d | ||
|
|
2baa58e056 | ||
|
|
aa4767725d | ||
|
|
42a9d98048 | ||
|
|
9b0f932567 | ||
|
|
6cc4e1a2b1 | ||
|
|
2c45a0ae2c | ||
|
|
b95fb925c9 | ||
|
|
5c6afeb604 | ||
|
|
0b4d97bfd6 |
45
.env
45
.env
@@ -1,4 +1,5 @@
|
|||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
### Pinpoint-Hbase
|
### Pinpoint-Hbase
|
||||||
|
|
||||||
@@ -6,6 +7,11 @@ PINPOINT_HBASE_NAME=pinpoint-hbase
|
|||||||
#config for hbase in external docker
|
#config for hbase in external docker
|
||||||
EXTERNAL_HBASE_PORT=2180
|
EXTERNAL_HBASE_PORT=2180
|
||||||
|
|
||||||
|
### Pinpoint-mysql
|
||||||
|
MYSQL_ROOT_PASSWORD=root123
|
||||||
|
MYSQL_USER=admin
|
||||||
|
MYSQL_PASSWORD=admin
|
||||||
|
MYSQL_DATABASE=pinpoint
|
||||||
|
|
||||||
### Pinpoint-Web
|
### Pinpoint-Web
|
||||||
|
|
||||||
@@ -27,16 +33,39 @@ HBASE_PORT=2181
|
|||||||
WEB_DEBUG_LEVEL=INFO
|
WEB_DEBUG_LEVEL=INFO
|
||||||
|
|
||||||
BATCH_ENABLE=false
|
BATCH_ENABLE=false
|
||||||
BATCH_SERVER_IP=127.0.0.127
|
BATCH_SERVER_IP=127.0.0.1
|
||||||
BATCH_FLINK_SERVER=pinpoint-flink-jobmanager
|
BATCH_FLINK_SERVER=pinpoint-flink-jobmanager
|
||||||
|
|
||||||
CONFIG_SHOW_APPLICATIONSTAT=true
|
CONFIG_SHOW_APPLICATIONSTAT=true
|
||||||
|
|
||||||
|
#mysql information required
|
||||||
|
JDBC_DRIVER=com.mysql.jdbc.Driver
|
||||||
|
JDBC_URL=jdbc:mysql://pinpoint-mysql:3306/pinpoint?characterEncoding=UTF-8
|
||||||
|
JDBC_USERNAME=admin
|
||||||
|
JDBC_PASSWORD=admin
|
||||||
|
|
||||||
|
#mail server information required
|
||||||
|
MAIL_SERVER_URL=smtp.gmail.com
|
||||||
|
MAIL_SERVER_PORT=587
|
||||||
|
MAIL_SERVER_USERNAME=username
|
||||||
|
MAIL_SERVER_PASSWORD=password
|
||||||
|
MAIL_SENDER_ADDRESS=pinpoint_operator@pinpoint.com
|
||||||
|
MAIL_TRANSPORT_PROTOCOL=smtp
|
||||||
|
MAIL_SMTP_PORT=25
|
||||||
|
MAIL_SMTP_AUTH=false
|
||||||
|
MAIL_SMTP_STARTTLS_ENABLE=false
|
||||||
|
MAIL_SMTP_STARTTLS_REQUIRED=false
|
||||||
|
MAIL_DEBUG=false
|
||||||
|
|
||||||
|
|
||||||
### Pinpoint-Collector
|
### Pinpoint-Collector
|
||||||
|
|
||||||
PINPOINT_COLLECTOR_NAME=pinpoint-collector
|
PINPOINT_COLLECTOR_NAME=pinpoint-collector
|
||||||
|
|
||||||
|
COLLECTOR_RECEIVER_AGENT_PORT=9991
|
||||||
|
COLLECTOR_RECEIVER_METADATA_PORT=9991
|
||||||
|
COLLECTOR_RECEIVER_STAT_PORT=9992
|
||||||
|
COLLECTOR_RECEIVER_SPAN_PORT=9993
|
||||||
COLLECTOR_RECEIVER_BASE_PORT=9994
|
COLLECTOR_RECEIVER_BASE_PORT=9994
|
||||||
COLLECTOR_RECEIVER_STAT_UDP_PORT=9995
|
COLLECTOR_RECEIVER_STAT_UDP_PORT=9995
|
||||||
COLLECTOR_RECEIVER_SPAN_UDP_PORT=9996
|
COLLECTOR_RECEIVER_SPAN_UDP_PORT=9996
|
||||||
@@ -50,10 +79,20 @@ COLLECTOR_DEBUG_LEVEL=INFO
|
|||||||
### Pinpoint-Agent
|
### Pinpoint-Agent
|
||||||
|
|
||||||
PINPOINT_AGENT_NAME=pinpoint-agent
|
PINPOINT_AGENT_NAME=pinpoint-agent
|
||||||
|
|
||||||
|
#network module(GRPC,THRIFT)
|
||||||
|
PROFILER_TRANSPORT_MODULE=GRPC
|
||||||
|
|
||||||
|
#collector information required
|
||||||
COLLECTOR_IP=pinpoint-collector
|
COLLECTOR_IP=pinpoint-collector
|
||||||
|
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_TCP_PORT=9994
|
||||||
COLLECTOR_STAT_PORT=9995
|
COLLECTOR_STAT_PORT=9995
|
||||||
COLLECTOR_SPAN_PORT=9996
|
COLLECTOR_SPAN_PORT=9996
|
||||||
|
|
||||||
# Set sampling rate. If you set it to N, 1 out of N transaction will be sampled.
|
# Set sampling rate. If you set it to N, 1 out of N transaction will be sampled.
|
||||||
PROFILER_SAMPLING_RATE=1
|
PROFILER_SAMPLING_RATE=1
|
||||||
|
|
||||||
@@ -71,4 +110,4 @@ FLINK_WEB_PORT=8081
|
|||||||
|
|
||||||
### Pinpoint-quickstart
|
### Pinpoint-quickstart
|
||||||
|
|
||||||
APP_PORT=8000
|
APP_PORT=8000
|
||||||
|
|||||||
87
Readme.md
87
Readme.md
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
# Pinpoint-Docker for Pinpoint
|
# Pinpoint-Docker for Pinpoint
|
||||||
|
|
||||||
Official git repository of Dockerized components of the [Pinpoint Application Monitoring](http://naver.github.io/pinpoint/).
|
Official git repository of Dockerized components of the [Pinpoint Application Monitoring](http://naver.github.io/pinpoint/).
|
||||||
|
Installing Pinpoint with these docker files will take approximately 10min. to check out the features of pinpoint.
|
||||||
|
|
||||||
## What is Pinpoint
|
## What is Pinpoint
|
||||||
|
|
||||||
@@ -12,49 +13,93 @@ It supports and helps you understand your application in a glance and allow you
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 2.0.2
|
||||||
|
- 2.0.1
|
||||||
|
- Default transport module has changed from THRIFT to gRPC
|
||||||
|
- Spring profiler added (check [homepage](https://naver.github.io/pinpoint/2.0.1/installation.html#profiles) for more info)
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
|
- 1.8.3
|
||||||
|
- 1.8.2
|
||||||
|
- 1.8.1
|
||||||
|
- 1.8.0
|
||||||
- 1.7.3
|
- 1.7.3
|
||||||
- 1.7.2
|
- 1.7.2
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- [docker 18.02.0+](https://docs.docker.com/compose/compose-file/)
|
||||||
|
|
||||||
## How to install Pinpoint?
|
## How to install Pinpoint?
|
||||||
|
|
||||||
You can easily bring up an entire Dockerized Pinpoint environment by using [Docker Compose](https://docs.docker.com/compose/) with any of the provided `docker-compose.yml` files as below.
|
You can easily bring up an entire Dockerized Pinpoint(latest release) environment by using [Docker Compose](https://docs.docker.com/compose/) with any of the provided `docker-compose.yml` files as below.
|
||||||
With `docker-compose.yml` under *Pinpoint-Docker* folder brings up all the environment attached with Pinpoint-QuickStart(sample app).
|
With `docker-compose.yml` under *Pinpoint-Docker* folder brings up all the environment attached with Pinpoint-QuickStart(sample app).
|
||||||
To monitor your agent see [configuration part](#Configuration) for further details.
|
To monitor your agent see [configuration part](#configurations) for further details.
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/naver/pinpoint-docker.git
|
git clone https://github.com/naver/pinpoint-docker.git
|
||||||
cd Pinpoint-Docker
|
cd pinpoint-docker
|
||||||
docker-compose pull && docker-compose up -d
|
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.
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/naver/pinpoint-docker.git
|
||||||
|
git checkout {tag}
|
||||||
|
cd pinpoint-docker
|
||||||
|
docker-compose pull && docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
This will install and run all services required to run all features in Pinpoint in docker containers joined with same network.
|
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-Web Server
|
||||||
- Pinpoint-Collector
|
- Pinpoint-Collector
|
||||||
- Pinpoint-Agent(ready to be used)
|
- Pinpoint-Agent
|
||||||
- Pinpoint-Flink
|
- Pinpoint-Flink(to support certain feature)
|
||||||
- Pinpoint-Zookeeper
|
- Pinpoint-Zookeeper
|
||||||
- Pinpoint-Hbase
|
- Pinpoint-Hbase
|
||||||
- Pinpoint-QuickStart(a sample application)
|
- Pinpoint-QuickStart(a sample application, 1.8.1+)
|
||||||
|
- Pinpoint-Mysql(to support certain feature)
|
||||||
This may take several minutes to download all necessary images.
|
This may take several minutes to download all necessary images.
|
||||||
|
|
||||||
You can modify `QuickStart` application part with your application to start monitoring.
|
You can replace `QuickStart` application part with your application to start monitoring.
|
||||||
(see [`Monitoring YOUR Application`](https://github.com/naver/pinpoint-docker#monitoring-your-application) part for further details).
|
- check [`Testing QuickStart application`](#testing-quickstart-application) for a quick demo of pinpoint
|
||||||
|
- check [`Monitoring YOUR Application`](#monitoring-your-application) part for further details
|
||||||
|
|
||||||
After all containers are started and ready to go. There is one more thing to do to use all existing features in Pinpoint.
|
### Mysql (optional, 1.8.1+)
|
||||||
It's not mandatory, but to use all the features and since it's a simple task, let's take care of it.
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
To send email alerts, you must make BATCH_ENABLE=true and change the other mail-related environment variables (MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_PROPERTIES_MAIL_SMTP_FROM, ...) to the Pinpoint-Web server in *.env* file.
|
||||||
|
|
||||||
|
For more information checkout [Setting Alarm](http://naver.github.io/pinpoint/alarm.html) in Pinpoint documentation.
|
||||||
|
|
||||||
|
### Flink configuration (optional)
|
||||||
|
|
||||||
|
The Pinpoint-Flink is necessary to use ['Application Inspector'](http://naver.github.io/pinpoint/applicationinspector.html) feature.
|
||||||
|
|
||||||
|
After all containers are started and ready to go. There is one more thing to do to use this features in Pinpoint.
|
||||||
|
This feature is not mandatory, but since enabling this is a simple task, let's take care of it.
|
||||||
|
|
||||||
Register a `job` on to pinpoint-flink server.
|
Register a `job` on to pinpoint-flink server.
|
||||||
You can build the `job` from the [open-source of Pinpoint](https://github.com/naver/pinpoint), additional guide is [here](https://github.com/naver/pinpoint/blob/master/doc/application-inspector.md#application-inspector).
|
You can build the `job` from the [open-source of Pinpoint](https://github.com/naver/pinpoint), additional guide is [here](https://github.com/naver/pinpoint/blob/master/doc/application-inspector.md#application-inspector).
|
||||||
or
|
|
||||||
you can simply upload pre-built jar file under pinpoint-flink/build/pinpoint-flink-job-{pinpoint-version}.jar (beware of the version, it should matched with *PINPOINT_VERSION* in .env file)
|
|
||||||
If anyone have solution to put the job file into flink image without doing manually, please let us know.
|
If anyone have solution to put the job file into flink image without doing manually, please let us know.
|
||||||
|
|
||||||
Pinpoint-Flink server is running on [port 8081](http://localhost:8081/#/submit). From `submit new job` menu
|
Pinpoint-Flink server is running on [port 8081](http://localhost:8081/#/submit). From `submit new job` menu
|
||||||
Submit the jar file with *com.navercorp.pinpoint.flink.StatStreamingVer2Job* in entry class as below image.
|
Submit the jar file with *com.navercorp.pinpoint.flink.StatStreamingVer2Job* in entry class as below image.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
### Alarm configuration (optional)
|
||||||
|
|
||||||
|
You can check the [alarm guide document at the homepage](https://naver.github.io/pinpoint/alarm.html) for full understanding.
|
||||||
|
But for the docker image, All is set. fillout variables under *#mail server information required* in `.env` file before starting the container
|
||||||
|
|
||||||
Now you are ready to monitor the sample application(Pinpoint-QuickStart) provided.
|
### Testing QuickStart application
|
||||||
|
|
||||||
|
Now you are ready to monitor the sample application(Pinpoint-QuickStart [port 8000](http://localhost:8000)) provided.
|
||||||
If you can't find any connected application from Pinpoint-Web's first page([port 8079](http://localhost:8079) as default), don't panic and wait for a while.
|
If you can't find any connected application from Pinpoint-Web's first page([port 8079](http://localhost:8079) as default), don't panic and wait for a while.
|
||||||
It will take some time for Pinpoint to retrieve the application's information when running for the first time.
|
It will take some time for Pinpoint to retrieve the application's information when running for the first time.
|
||||||
|
|
||||||
@@ -71,6 +116,15 @@ If you are not familiar with Pinpoint concept, please read: [Overview](http://na
|
|||||||
Running Pinpoint-Agent docker-compose separately, Examples are [here](https://github.com/naver/pinpoint-docker/tree/master/pinpoint-agent-attach-example).
|
Running Pinpoint-Agent docker-compose separately, Examples are [here](https://github.com/naver/pinpoint-docker/tree/master/pinpoint-agent-attach-example).
|
||||||
Otherwise, you can check how [Pinpoint-Quickstart](https://github.com/naver/pinpoint-docker/blob/master/docker-compose.yml) is attached to Pinpoint-Agent with docker-compose.
|
Otherwise, you can check how [Pinpoint-Quickstart](https://github.com/naver/pinpoint-docker/blob/master/docker-compose.yml) is attached to Pinpoint-Agent with docker-compose.
|
||||||
|
|
||||||
|
We'll try to create more examples along the way.
|
||||||
|
If anyone who can share their dockerfile, it's always welcome.
|
||||||
|
|
||||||
|
## Distributed System
|
||||||
|
|
||||||
|
Until now, every components are in one docker, single-node approach, which is excellent for test and development.
|
||||||
|
It provides an easy way to prototype new ideas and use cases, as well as try out new functionality and the latest Pinpoint releases.
|
||||||
|
It’s not intended nor supported for production use.
|
||||||
|
|
||||||
You can use `docker-compose` and `.env` files under each folder to install the modules separately into several servers.
|
You can use `docker-compose` and `.env` files under each folder to install the modules separately into several servers.
|
||||||
If containers are separated, ip configurations in `.env` must be changed within.
|
If containers are separated, ip configurations in `.env` must be changed within.
|
||||||
|
|
||||||
@@ -79,9 +133,6 @@ You can remove *pinpoint-agent* and *pinpoint-quickstart* from docker-compose.ym
|
|||||||
And create another docker-compose.yml just like one under pinpoint-quickstart folder to run your application.
|
And create another docker-compose.yml just like one under pinpoint-quickstart folder to run your application.
|
||||||
Finally, since agent needs to acknowledge the collector ip. collector ip needs to be changed in .env.
|
Finally, since agent needs to acknowledge the collector ip. collector ip needs to be changed in .env.
|
||||||
|
|
||||||
We'll try to create more examples along the way.
|
|
||||||
If anyone who can share their dockerfile, it's always welcome.
|
|
||||||
|
|
||||||
## Configurations
|
## Configurations
|
||||||
|
|
||||||
Configuration relies on supplying `docker-compose` with environment variables defined in `.env` file. So it's recommended to change variables only from `.env` file.
|
Configuration relies on supplying `docker-compose` with environment variables defined in `.env` file. So it's recommended to change variables only from `.env` file.
|
||||||
@@ -94,7 +145,7 @@ Pinpoint-Zookeeper is just an example of using zookeeper image. You can modify d
|
|||||||
|
|
||||||
For more specific details on what the values represents in *.env* file. Please check [Pinpoint Github Repository](https://github.com/naver/pinpoint) or
|
For more specific details on what the values represents in *.env* file. Please check [Pinpoint Github Repository](https://github.com/naver/pinpoint) or
|
||||||
[Pinpoint Web properties](https://github.com/naver/pinpoint/blob/master/web/src/main/resources/pinpoint-web.properties), [Pinpoint Collector properties](https://github.com/naver/pinpoint/blob/master/collector/src/main/resources/pinpoint-collector.properties), [Pinpoint Agent configuration](https://github.com/naver/pinpoint/blob/master/agent/src/main/resources-release/pinpoint.config).
|
[Pinpoint Web properties](https://github.com/naver/pinpoint/blob/master/web/src/main/resources/pinpoint-web.properties), [Pinpoint Collector properties](https://github.com/naver/pinpoint/blob/master/collector/src/main/resources/pinpoint-collector.properties), [Pinpoint Agent configuration](https://github.com/naver/pinpoint/blob/master/agent/src/main/resources-release/pinpoint.config).
|
||||||
Please note that only essential configuration options are adopted to pinpoint-docker.
|
Please note that only essential configuration options are adopted to pinpoint-docker(docker-compose).
|
||||||
|
|
||||||
## logs
|
## logs
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ services:
|
|||||||
- pinpoint
|
- pinpoint
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./home/pinpoint/hbase
|
- /home/pinpoint/hbase
|
||||||
- ./home/pinpoint/zookeeper
|
- /home/pinpoint/zookeeper
|
||||||
expose:
|
expose:
|
||||||
# zookeeper
|
# zookeeper
|
||||||
- "2181"
|
- "2181"
|
||||||
@@ -35,6 +35,30 @@ services:
|
|||||||
- "16030:16030"
|
- "16030:16030"
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
pinpoint-mysql:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-mysql/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: pinpoint-mysql
|
||||||
|
restart: always
|
||||||
|
image: "pinpointdocker/pinpoint-mysql:${PINPOINT_VERSION}"
|
||||||
|
hostname: pinpoint-mysql
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||||
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||||
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- mysql_data:/var/lib/mysql
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
pinpoint-web:
|
pinpoint-web:
|
||||||
build:
|
build:
|
||||||
context: ./pinpoint-web/
|
context: ./pinpoint-web/
|
||||||
@@ -47,6 +71,7 @@ services:
|
|||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- pinpoint-hbase
|
- pinpoint-hbase
|
||||||
|
- pinpoint-mysql
|
||||||
restart: always
|
restart: always
|
||||||
expose:
|
expose:
|
||||||
- "8080"
|
- "8080"
|
||||||
@@ -55,6 +80,8 @@ services:
|
|||||||
- "9997:9997"
|
- "9997:9997"
|
||||||
- "${WEB_PAGE_PORT:-8080}:8080"
|
- "${WEB_PAGE_PORT:-8080}:8080"
|
||||||
environment:
|
environment:
|
||||||
|
- JAVA_OPTS="-Dspring.profiles.active=${SPRING_PROFILES},batch"
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
||||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
@@ -66,6 +93,23 @@ services:
|
|||||||
- BATCH_ENABLE=${BATCH_ENABLE}
|
- BATCH_ENABLE=${BATCH_ENABLE}
|
||||||
- BATCH_SERVER_IP=${BATCH_SERVER_IP}
|
- BATCH_SERVER_IP=${BATCH_SERVER_IP}
|
||||||
- BATCH_FLINK_SERVER=${BATCH_FLINK_SERVER}
|
- BATCH_FLINK_SERVER=${BATCH_FLINK_SERVER}
|
||||||
|
- JDBC_DRIVER=${JDBC_DRIVER}
|
||||||
|
- JDBC_URL=${JDBC_URL}
|
||||||
|
- JDBC_USERNAME=${JDBC_USERNAME}
|
||||||
|
- JDBC_PASSWORD=${JDBC_PASSWORD}
|
||||||
|
- MAIL_SERVER_URL=${MAIL_SERVER_URL}
|
||||||
|
- MAIL_SERVER_PORT=${MAIL_SERVER_PORT}
|
||||||
|
- MAIL_SERVER_USERNAME=${MAIL_SERVER_USERNAME}
|
||||||
|
- MAIL_SERVER_PASSWORD=${MAIL_SERVER_PASSWORD}
|
||||||
|
- MAIL_SENDER_ADDRESS=${MAIL_SENDER_ADDRESS}
|
||||||
|
- MAIL_TRANSPORT_PROTOCOL=${MAIL_TRANSPORT_PROTOCOL}
|
||||||
|
- MAIL_SMTP_PORT=${MAIL_SMTP_PORT}
|
||||||
|
- MAIL_SMTP_AUTH=${MAIL_SMTP_AUTH}
|
||||||
|
- MAIL_SMTP_STARTTLS_ENABLE=${MAIL_SMTP_STARTTLS_ENABLE}
|
||||||
|
- MAIL_SMTP_STARTTLS_REQUIRED=${MAIL_SMTP_STARTTLS_REQUIRED}
|
||||||
|
- MAIL_DEBUG=${MAIL_DEBUG}
|
||||||
|
links:
|
||||||
|
- "pinpoint-mysql:pinpoint-mysql"
|
||||||
networks:
|
networks:
|
||||||
- pinpoint
|
- pinpoint
|
||||||
|
|
||||||
@@ -83,18 +127,28 @@ services:
|
|||||||
- pinpoint-hbase
|
- pinpoint-hbase
|
||||||
restart: always
|
restart: always
|
||||||
expose:
|
expose:
|
||||||
|
- "9991"
|
||||||
|
- "9992"
|
||||||
|
- "9993"
|
||||||
- "9994"
|
- "9994"
|
||||||
- "9995"
|
- "9995"
|
||||||
- "9996"
|
- "9996"
|
||||||
ports:
|
ports:
|
||||||
|
- "${COLLECTOR_RECEIVER_AGENT_PORT:-9991}:9991/udp"
|
||||||
|
- "${COLLECTOR_RECEIVER_METADATA_PORT:-9991}:9991/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_PORT:-9992}:9992/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_PORT:-9993}:9993/tcp"
|
||||||
- "${COLLECTOR_RECEIVER_BASE_PORT:-9994}:9994"
|
- "${COLLECTOR_RECEIVER_BASE_PORT:-9994}:9994"
|
||||||
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/tcp"
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/tcp"
|
||||||
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/tcp"
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/tcp"
|
||||||
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/udp"
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/udp"
|
||||||
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/udp"
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/udp"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- pinpoint
|
- pinpoint
|
||||||
environment:
|
environment:
|
||||||
|
- JAVA_OPTS="-Dspring.profiles.active=${SPRING_PROFILES}"
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
||||||
- HBASE_HOST=${HBASE_HOST}
|
- HBASE_HOST=${HBASE_HOST}
|
||||||
@@ -115,7 +169,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- data-volume:/pinpoint-agent
|
- data-volume:/pinpoint-agent
|
||||||
environment:
|
environment:
|
||||||
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME}"
|
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:
|
networks:
|
||||||
- pinpoint
|
- pinpoint
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -138,12 +192,15 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- data-volume:/pinpoint-agent
|
- data-volume:/pinpoint-agent
|
||||||
environment:
|
environment:
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
- COLLECTOR_IP=${COLLECTOR_IP}
|
- COLLECTOR_IP=${COLLECTOR_IP}
|
||||||
- COLLECTOR_TCP_PORT=${COLLECTOR_TCP_PORT}
|
- PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}
|
||||||
- COLLECTOR_STAT_PORT=${COLLECTOR_STAT_PORT}
|
- PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}
|
||||||
- COLLECTOR_SPAN_PORT=${COLLECTOR_SPAN_PORT}
|
- PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}
|
||||||
- PROFILER_SAMPLING_RATE=${PROFILER_SAMPLING_RATE}
|
- PROFILER_SAMPLING_RATE=${PROFILER_SAMPLING_RATE}
|
||||||
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
|
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
|
||||||
|
- PROFILER_TRANSPORT_MODULE=${PROFILER_TRANSPORT_MODULE}
|
||||||
depends_on:
|
depends_on:
|
||||||
- pinpoint-collector
|
- pinpoint-collector
|
||||||
|
|
||||||
@@ -215,6 +272,7 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
data-volume:
|
data-volume:
|
||||||
|
mysql_data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
pinpoint:
|
pinpoint:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
### Pinpoint with Java
|
### Pinpoint with Java
|
||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
SPRING_PROFILES=release
|
||||||
AGENT_ID=app-in-docker
|
AGENT_ID=app-in-docker
|
||||||
APP_NAME=quickapp
|
APP_NAME=quickapp
|
||||||
@@ -5,7 +5,7 @@ LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
|||||||
ARG PINPOINT_VERSION
|
ARG PINPOINT_VERSION
|
||||||
ARG AGENT_ID
|
ARG AGENT_ID
|
||||||
ARG APP_NAME
|
ARG APP_NAME
|
||||||
ENV JAVA_OPTS="-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME}"
|
ENV JAVA_OPTS="-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dspring.profiles.active=${SPRING_PROFILES}"
|
||||||
|
|
||||||
RUN mkdir -p javasample
|
RUN mkdir -p javasample
|
||||||
COPY build/Sample.java javasample
|
COPY build/Sample.java javasample
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ services:
|
|||||||
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
- AGENT_ID=${AGENT_ID}
|
- AGENT_ID=${AGENT_ID}
|
||||||
- APP_NAME=${APP_NAME}
|
- APP_NAME=${APP_NAME}
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
container_name: "java"
|
container_name: "java"
|
||||||
image: "Your Image"
|
image: "Your Image"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
### Pinpoint with Tomcat
|
### Pinpoint with Tomcat
|
||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
SPRING_PROFILES=release
|
||||||
APP_PORT=8000
|
APP_PORT=8000
|
||||||
AGENT_ID=app-in-docker
|
AGENT_ID=app-in-docker
|
||||||
APP_NAME=quickapp
|
APP_NAME=quickapp
|
||||||
@@ -13,7 +13,7 @@ services:
|
|||||||
volumes_from:
|
volumes_from:
|
||||||
- container:pinpoint-agent
|
- container:pinpoint-agent
|
||||||
environment:
|
environment:
|
||||||
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME}"
|
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dspring.profiles.active=${SPRING_PROFILES}"
|
||||||
command: catalina.sh run
|
command: catalina.sh run
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -1,13 +1,23 @@
|
|||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
### Pinpoint-Agent
|
### Pinpoint-Agent
|
||||||
|
|
||||||
PINPOINT_AGENT_NAME=pinpoint-agent
|
PINPOINT_AGENT_NAME=pinpoint-agent
|
||||||
|
|
||||||
|
#network module(GRPC,THRIFT)
|
||||||
|
PROFILER_TRANSPORT_MODULE=GRPC
|
||||||
|
|
||||||
#collector information required
|
#collector information required
|
||||||
COLLECTOR_IP=
|
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_TCP_PORT=9994
|
||||||
COLLECTOR_STAT_PORT=9995
|
COLLECTOR_STAT_PORT=9995
|
||||||
COLLECTOR_SPAN_PORT=9996
|
COLLECTOR_SPAN_PORT=9996
|
||||||
|
|
||||||
# Set sampling rate. If you set it to N, 1 out of N transaction will be sampled.
|
# Set sampling rate. If you set it to N, 1 out of N transaction will be sampled.
|
||||||
PROFILER_SAMPLING_RATE=1
|
PROFILER_SAMPLING_RATE=1
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ FROM alpine:3.7
|
|||||||
|
|
||||||
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
||||||
|
|
||||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-1.7.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.2}
|
||||||
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/${PINPOINT_VERSION}/pinpoint-agent-${PINPOINT_VERSION}.tar.gz
|
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-agent-${PINPOINT_VERSION}.tar.gz
|
||||||
|
|
||||||
COPY /build/scripts/configure-agent.sh /usr/local/bin/
|
COPY /build/scripts/configure-agent.sh /usr/local/bin/
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ RUN apk add --update curl bash \
|
|||||||
&& chmod -R o+x /pinpoint-agent \
|
&& chmod -R o+x /pinpoint-agent \
|
||||||
&& curl -SL ${INSTALL_URL} -o pinpoint-agent.tar.gz \
|
&& curl -SL ${INSTALL_URL} -o pinpoint-agent.tar.gz \
|
||||||
&& gunzip pinpoint-agent.tar.gz \
|
&& gunzip pinpoint-agent.tar.gz \
|
||||||
&& tar -xf pinpoint-agent.tar -C /pinpoint-agent \
|
&& tar -xf pinpoint-agent.tar --strip 1 -C /pinpoint-agent \
|
||||||
&& rm pinpoint-agent.tar \
|
&& rm pinpoint-agent.tar \
|
||||||
&& apk del curl \
|
&& apk del curl \
|
||||||
&& rm /var/cache/apk/*
|
&& rm /var/cache/apk/*
|
||||||
|
|||||||
@@ -5,6 +5,14 @@ This Docker image contains the Pinpoint Agent component of the Pinpoint applicat
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 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.3
|
||||||
- 1.7.2
|
- 1.7.2
|
||||||
|
|
||||||
|
|||||||
@@ -2,13 +2,23 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
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/${SPRING_PROFILES}/pinpoint-env.config
|
||||||
|
|
||||||
sed -i "/profiler.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/pinpoint.config
|
sed -i "/profiler.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/pinpoint.config
|
||||||
sed -i "/profiler.collector.tcp.port=/ s/=.*/=${COLLECTOR_TCP_PORT}/" /pinpoint-agent/pinpoint.config
|
sed -i "/profiler.collector.tcp.port=/ s/=.*/=${COLLECTOR_TCP_PORT}/" /pinpoint-agent/pinpoint.config
|
||||||
sed -i "/profiler.collector.stat.port=/ s/=.*/=${COLLECTOR_STAT_PORT}/" /pinpoint-agent/pinpoint.config
|
sed -i "/profiler.collector.stat.port=/ s/=.*/=${COLLECTOR_STAT_PORT}/" /pinpoint-agent/pinpoint.config
|
||||||
sed -i "/profiler.collector.span.port=/ s/=.*/=${COLLECTOR_SPAN_PORT}/" /pinpoint-agent/pinpoint.config
|
sed -i "/profiler.collector.span.port=/ s/=.*/=${COLLECTOR_SPAN_PORT}/" /pinpoint-agent/pinpoint.config
|
||||||
sed -i "/profiler.sampling.rate=/ s/=.*/=${PROFILER_SAMPLING_RATE}/" /pinpoint-agent/pinpoint.config
|
|
||||||
|
|
||||||
sed -i "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /pinpoint-agent/lib/log4j.xml
|
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/${SPRING_PROFILES}/pinpoint-env.config
|
||||||
|
sed -i "/profiler.transport.grpc.agent.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config
|
||||||
|
sed -i "/profiler.transport.grpc.metadata.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config
|
||||||
|
sed -i "/profiler.transport.grpc.stat.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config
|
||||||
|
sed -i "/profiler.transport.grpc.span.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config
|
||||||
|
sed -i "/profiler.sampling.rate=/ s/=.*/=${PROFILER_SAMPLING_RATE}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint-env.config
|
||||||
|
|
||||||
|
sed -i "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /pinpoint-agent/profiles/${SPRING_PROFILES}/log4j.xml
|
||||||
|
|
||||||
#ln -s /pinpoint-agent /pinpoint-agent
|
#ln -s /pinpoint-agent /pinpoint-agent
|
||||||
|
|
||||||
|
|||||||
@@ -17,12 +17,15 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- pinpoint-agent
|
- pinpoint-agent
|
||||||
environment:
|
environment:
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
- COLLECTOR_IP=${COLLECTOR_IP}
|
- COLLECTOR_IP=${COLLECTOR_IP}
|
||||||
- COLLECTOR_TCP_PORT=${COLLECTOR_TCP_PORT}
|
- PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}
|
||||||
- COLLECTOR_STAT_PORT=${COLLECTOR_STAT_PORT}
|
- PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}
|
||||||
- COLLECTOR_SPAN_PORT=${COLLECTOR_SPAN_PORT}
|
- PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}
|
||||||
- PROFILER_SAMPLING_RATE=${PROFILER_SAMPLING_RATE}
|
- PROFILER_SAMPLING_RATE=${PROFILER_SAMPLING_RATE}
|
||||||
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
|
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
|
||||||
|
- PROFILER_TRANSPORT_MODULE=${PROFILER_TRANSPORT_MODULE}
|
||||||
networks:
|
networks:
|
||||||
- pinpoint
|
- pinpoint
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
### Pinpoint-Collector
|
### Pinpoint-Collector
|
||||||
|
|
||||||
@@ -12,6 +13,10 @@ HBASE_PORT=
|
|||||||
|
|
||||||
PINPOINT_COLLECTOR_NAME=pinpoint-collector
|
PINPOINT_COLLECTOR_NAME=pinpoint-collector
|
||||||
|
|
||||||
|
COLLECTOR_RECEIVER_AGENT_PORT=9991
|
||||||
|
COLLECTOR_RECEIVER_METADATA_PORT=9991
|
||||||
|
COLLECTOR_RECEIVER_STAT_PORT=9992
|
||||||
|
COLLECTOR_RECEIVER_SPAN_PORT=9993
|
||||||
COLLECTOR_RECEIVER_BASE_PORT=9994
|
COLLECTOR_RECEIVER_BASE_PORT=9994
|
||||||
COLLECTOR_RECEIVER_STAT_UDP_PORT=9995
|
COLLECTOR_RECEIVER_STAT_UDP_PORT=9995
|
||||||
COLLECTOR_RECEIVER_SPAN_UDP_PORT=9996
|
COLLECTOR_RECEIVER_SPAN_UDP_PORT=9996
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ FROM tomcat:8-jre8
|
|||||||
|
|
||||||
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
||||||
|
|
||||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-1.7.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.2}
|
||||||
|
|
||||||
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/${PINPOINT_VERSION}/pinpoint-collector-${PINPOINT_VERSION}.war
|
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-${PINPOINT_VERSION}.war
|
||||||
|
|
||||||
COPY /build/scripts/start-collector.sh /usr/local/bin/
|
COPY /build/scripts/start-collector.sh /usr/local/bin/
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,14 @@ This Docker image contains the Pinpoint Collector component of the Pinpoint appl
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 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.3
|
||||||
- 1.7.2
|
- 1.7.2
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ sed -i "/cluster.zookeeper.address=/ s/=.*/=${CLUSTER_ZOOKEEPER_ADDRESS}/g" /usr
|
|||||||
sed -i "/flink.cluster.enable=/ s/=.*/=${FLINK_CLUSTER_ENABLE}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-collector.properties
|
sed -i "/flink.cluster.enable=/ s/=.*/=${FLINK_CLUSTER_ENABLE}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-collector.properties
|
||||||
sed -i "/flink.cluster.zookeeper.address=/ s/=.*/=${FLINK_CLUSTER_ZOOKEEPER_ADDRESS}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-collector.properties
|
sed -i "/flink.cluster.zookeeper.address=/ s/=.*/=${FLINK_CLUSTER_ZOOKEEPER_ADDRESS}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-collector.properties
|
||||||
|
|
||||||
sed -i "/hbase.client.host=/ s/=.*/=${HBASE_HOST}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/hbase.properties
|
sed -i "/hbase.client.host=/ s/=.*/=${HBASE_HOST}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/profiles/${SPRING_PROFILES}/hbase-env.properties
|
||||||
sed -i "/hbase.client.port=/ s/=.*/=${HBASE_PORT}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/hbase.properties
|
sed -i "/hbase.client.port=/ s/=.*/=${HBASE_PORT}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/profiles/${SPRING_PROFILES}/hbase-env.properties
|
||||||
|
|
||||||
sed -i "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/log4j.xml
|
sed -i "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/profiles/${SPRING_PROFILES}/log4j.xml
|
||||||
|
|
||||||
exec /usr/local/tomcat/bin/catalina.sh run
|
exec /usr/local/tomcat/bin/catalina.sh run
|
||||||
@@ -13,10 +13,17 @@ services:
|
|||||||
|
|
||||||
restart: always
|
restart: always
|
||||||
expose:
|
expose:
|
||||||
|
- "9991"
|
||||||
|
- "9992"
|
||||||
|
- "9993"
|
||||||
- "9994"
|
- "9994"
|
||||||
- "9995"
|
- "9995"
|
||||||
- "9996"
|
- "9996"
|
||||||
ports:
|
ports:
|
||||||
|
- "${COLLECTOR_RECEIVER_AGENT_PORT:-9991}:9991/udp"
|
||||||
|
- "${COLLECTOR_RECEIVER_METADATA_PORT:-9991}:9991/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_PORT:-9992}:9992/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_PORT:-9993}:9993/tcp"
|
||||||
- "${COLLECTOR_RECEIVER_BASE_PORT:-9994}:9994"
|
- "${COLLECTOR_RECEIVER_BASE_PORT:-9994}:9994"
|
||||||
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/tcp"
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/tcp"
|
||||||
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/tcp"
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/tcp"
|
||||||
@@ -24,6 +31,7 @@ services:
|
|||||||
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/udp"
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/udp"
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
||||||
- HBASE_HOST=${HBASE_HOST}
|
- HBASE_HOST=${HBASE_HOST}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
|
||||||
### Pinpoint-flink
|
### Pinpoint-flink
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
|
||||||
### Pinpoint-Hbase
|
### Pinpoint-Hbase
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM java:8-jdk
|
|||||||
|
|
||||||
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
||||||
|
|
||||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-1.7.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.2}
|
||||||
|
|
||||||
ENV HBASE_REPOSITORY=http://apache.mirrors.pair.com/hbase
|
ENV HBASE_REPOSITORY=http://apache.mirrors.pair.com/hbase
|
||||||
ENV HBASE_SUB_REPOSITORY=http://archive.apache.org/dist/hbase
|
ENV HBASE_SUB_REPOSITORY=http://archive.apache.org/dist/hbase
|
||||||
@@ -19,7 +19,7 @@ RUN mkdir -p ${BASE_DIR} \
|
|||||||
&& curl -fSL "${HBASE_REPOSITORY}/${HBASE_VERSION}/hbase-${HBASE_VERSION}-bin.tar.gz" -o hbase.tar.gz || curl -fSL "${HBASE_SUB_REPOSITORY}/${HBASE_VERSION}/hbase-${HBASE_VERSION}-bin.tar.gz" -o hbase.tar.gz \
|
&& curl -fSL "${HBASE_REPOSITORY}/${HBASE_VERSION}/hbase-${HBASE_VERSION}-bin.tar.gz" -o hbase.tar.gz || curl -fSL "${HBASE_SUB_REPOSITORY}/${HBASE_VERSION}/hbase-${HBASE_VERSION}-bin.tar.gz" -o hbase.tar.gz \
|
||||||
&& tar xfvz hbase.tar.gz \
|
&& tar xfvz hbase.tar.gz \
|
||||||
&& mv ../../hbase-site.xml ../../${HBASE_HOME}/conf/hbase-site.xml \
|
&& mv ../../hbase-site.xml ../../${HBASE_HOME}/conf/hbase-site.xml \
|
||||||
&& curl -SL "https://raw.githubusercontent.com/naver/pinpoint/${PINPOINT_VERSION}/hbase/scripts/hbase-create.hbase" -o ${BASE_DIR}/hbase-create.hbase \
|
&& curl -SL "https://raw.githubusercontent.com/naver/pinpoint/v${PINPOINT_VERSION}/hbase/scripts/hbase-create.hbase" -o ${BASE_DIR}/hbase-create.hbase \
|
||||||
&& ${HBASE_HOME}/bin/start-hbase.sh \
|
&& ${HBASE_HOME}/bin/start-hbase.sh \
|
||||||
&& sleep 10 \
|
&& sleep 10 \
|
||||||
&& ${HBASE_HOME}/bin/hbase shell ${BASE_DIR}/hbase-create.hbase \
|
&& ${HBASE_HOME}/bin/hbase shell ${BASE_DIR}/hbase-create.hbase \
|
||||||
|
|||||||
@@ -5,6 +5,14 @@ This Docker image contains the Pinpoint Hbase component of the Pinpoint applicat
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 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.3
|
||||||
- 1.7.2
|
- 1.7.2
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ services:
|
|||||||
image: "pinpointdocker/pinpoint-hbase:${PINPOINT_VERSION}"
|
image: "pinpointdocker/pinpoint-hbase:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./home/pinpoint/hbase
|
- /home/pinpoint/hbase
|
||||||
- ./home/pinpoint/zookeeper
|
- /home/pinpoint/zookeeper
|
||||||
expose:
|
expose:
|
||||||
# zookeeper
|
# zookeeper
|
||||||
- "2181"
|
- "2181"
|
||||||
@@ -31,4 +31,4 @@ services:
|
|||||||
- "16010:16010"
|
- "16010:16010"
|
||||||
- "60020:60020"
|
- "60020:60020"
|
||||||
- "16030:16030"
|
- "16030:16030"
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
7
pinpoint-mysql/.env
Normal file
7
pinpoint-mysql/.env
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
PINPOINT_VERSION=2.0.2
|
||||||
|
|
||||||
|
### Pinpoint-mysql
|
||||||
|
MYSQL_ROOT_PASSWORD=root123
|
||||||
|
MYSQL_USER=admin
|
||||||
|
MYSQL_PASSWORD=admin
|
||||||
|
MYSQL_DATABASE=pinpoint
|
||||||
11
pinpoint-mysql/Dockerfile
Normal file
11
pinpoint-mysql/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM mysql:5.7
|
||||||
|
|
||||||
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.2}
|
||||||
|
|
||||||
|
RUN apt update \
|
||||||
|
&& apt-get install -y --no-install-recommends ca-certificates wget \
|
||||||
|
&& wget -O /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql "https://raw.githubusercontent.com/naver/pinpoint/v$PINPOINT_VERSION/web/src/main/resources/sql/CreateTableStatement-mysql.sql" \
|
||||||
|
&& wget -O /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql "https://raw.githubusercontent.com/naver/pinpoint/v$PINPOINT_VERSION/web/src/main/resources/sql/SpringBatchJobRepositorySchema-mysql.sql" \
|
||||||
|
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql \
|
||||||
|
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql \
|
||||||
|
&& apt-get purge -y --auto-remove ca-certificates wget
|
||||||
45
pinpoint-mysql/Readme.md
Normal file
45
pinpoint-mysql/Readme.md
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
|
||||||
|
## Pinpoint Mysql
|
||||||
|
|
||||||
|
This Docker image contains the Pinpoint Mysql component of the Pinpoint application monitoring system.
|
||||||
|
|
||||||
|
## Supported Tags
|
||||||
|
|
||||||
|
- 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/naver/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/naver/pinpoint/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/naver/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.
|
||||||
|
```
|
||||||
25
pinpoint-mysql/docker-compose.yml
Normal file
25
pinpoint-mysql/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-mysql:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: pinpoint-mysql
|
||||||
|
restart: always
|
||||||
|
image: "pinpointdocker/pinpoint-mysql:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
hostname: pinpoint-mysql
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||||
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||||
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- ./var/lib/mysql
|
||||||
@@ -1,13 +1,17 @@
|
|||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
### Pinpoint-Agent
|
### Pinpoint-Agent
|
||||||
|
|
||||||
PINPOINT_AGENT_NAME=pinpoint-agent
|
PINPOINT_AGENT_NAME=pinpoint-agent
|
||||||
|
|
||||||
#collector information required
|
#collector information required
|
||||||
COLLECTOR_IP=
|
COLLECTOR_IP=
|
||||||
COLLECTOR_TCP_PORT=9994
|
PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=9991
|
||||||
COLLECTOR_STAT_PORT=9995
|
PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=9991
|
||||||
COLLECTOR_SPAN_PORT=9996
|
PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=9992
|
||||||
|
PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=9993
|
||||||
|
|
||||||
# Set sampling rate. If you set it to N, 1 out of N transaction will be sampled.
|
# Set sampling rate. If you set it to N, 1 out of N transaction will be sampled.
|
||||||
PROFILER_SAMPLING_RATE=1
|
PROFILER_SAMPLING_RATE=1
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- data-volume:/pinpoint-agent
|
- data-volume:/pinpoint-agent
|
||||||
environment:
|
environment:
|
||||||
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME}"
|
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:
|
networks:
|
||||||
- pinpoint
|
- pinpoint
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
PINPOINT_VERSION=1.7.3
|
PINPOINT_VERSION=2.0.2
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
### Pinpoint-Web
|
### Pinpoint-Web
|
||||||
|
|
||||||
@@ -21,8 +22,27 @@ HBASE_PORT=
|
|||||||
WEB_DEBUG_LEVEL=INFO
|
WEB_DEBUG_LEVEL=INFO
|
||||||
|
|
||||||
#flink server information required if used
|
#flink server information required if used
|
||||||
BATCH_ENABLE=false
|
BATCH_ENABLE=true
|
||||||
BATCH_SERVER_IP=127.0.0.127
|
BATCH_SERVER_IP=127.0.0.1
|
||||||
BATCH_FLINK_SERVER=pinpoint-flink-jobmanager
|
BATCH_FLINK_SERVER=pinpoint-flink-jobmanager
|
||||||
|
|
||||||
CONFIG_SHOW_APPLICATIONSTAT=true
|
CONFIG_SHOW_APPLICATIONSTAT=true
|
||||||
|
|
||||||
|
#mysql information required
|
||||||
|
JDBC_DRIVER=com.mysql.jdbc.Driver
|
||||||
|
JDBC_URL=jdbc:mysql://pinpoint-mysql:3306/pinpoint?characterEncoding=UTF-8
|
||||||
|
JDBC_USERNAME=admin
|
||||||
|
JDBC_PASSWORD=admin
|
||||||
|
|
||||||
|
#mail server information required
|
||||||
|
MAIL_SERVER_URL=smtp.gmail.com
|
||||||
|
MAIL_SERVER_PORT=587
|
||||||
|
MAIL_SERVER_USERNAME=username
|
||||||
|
MAIL_SERVER_PASSWORD=password
|
||||||
|
MAIL_SENDER_ADDRESS=pinpoint_operator@pinpoint.com
|
||||||
|
MAIL_TRANSPORT_PROTOCOL=smtp
|
||||||
|
MAIL_SMTP_PORT=25
|
||||||
|
MAIL_SMTP_AUTH=false
|
||||||
|
MAIL_SMTP_STARTTLS_ENABLE=false
|
||||||
|
MAIL_SMTP_STARTTLS_REQUIRED=false
|
||||||
|
MAIL_DEBUG=false
|
||||||
@@ -2,8 +2,8 @@ FROM tomcat:8-jre8
|
|||||||
|
|
||||||
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
||||||
|
|
||||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-1.7.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.2}
|
||||||
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/${PINPOINT_VERSION}/pinpoint-web-${PINPOINT_VERSION}.war
|
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-web-${PINPOINT_VERSION}.war
|
||||||
|
|
||||||
COPY /build/scripts/start-web.sh /usr/local/bin/
|
COPY /build/scripts/start-web.sh /usr/local/bin/
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,14 @@ This Docker image contains the Pinpoint Web component of the Pinpoint applicatio
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 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.3
|
||||||
- 1.7.2
|
- 1.7.2
|
||||||
|
|
||||||
|
|||||||
@@ -2,21 +2,43 @@
|
|||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
sed -i "/cluster.enable=/ s/=.*/=${CLUSTER_ENABLE}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
WEB_INF_CLASSES_DIR=/usr/local/tomcat/webapps/ROOT/WEB-INF/classes
|
||||||
sed -i "/cluster.zookeeper.address=/ s/=.*/=${CLUSTER_ZOOKEEPER_ADDRESS}/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
APPLICATION_WEB_PROPERTIES=${WEB_INF_CLASSES_DIR}/pinpoint-web.properties
|
||||||
#sed -i "/cluster.web.tcp.port=/ s/=.*/=${CLUSTER_WEB_TCP_PORT}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
APPLICATION_HBASE_PROPERTIES=${WEB_INF_CLASSES_DIR}/profiles/${SPRING_PROFILES}/hbase-env.properties
|
||||||
sed -i "/admin.password=/ s/=.*/=${ADMIN_PASSWORD}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
APPLICATION_BATCH_PROPERTIES=${WEB_INF_CLASSES_DIR}/batch.properties
|
||||||
sed -i "/config.sendUsage=/ s/=.*/=${ANALYTICS}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
APPLICATION_JDBC_PROPERTIES=${WEB_INF_CLASSES_DIR}/jdbc.properties
|
||||||
sed -i "/config.show.applicationStat=/ s/=.*/=${CONFIG_SHOW_APPLICATIONSTAT}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
|
||||||
|
|
||||||
sed -i "/hbase.client.host=/ s/=.*/=${HBASE_HOST}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/hbase.properties
|
sed -i "/cluster.enable=/ s/=.*/=${CLUSTER_ENABLE}/" ${APPLICATION_WEB_PROPERTIES}
|
||||||
sed -i "/hbase.client.port=/ s/=.*/=${HBASE_PORT}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/hbase.properties
|
#sed -i "/cluster.zookeeper.address=/ s/=.*/=${CLUSTER_ZOOKEEPER_ADDRESS}/g" ${APPLICATION_WEB_PROPERTIES}
|
||||||
|
#sed -i "/cluster.web.tcp.port=/ s/=.*/=${CLUSTER_WEB_TCP_PORT}/" ${APPLICATION_WEB_PROPERTIES}
|
||||||
|
sed -i "/admin.password=/ s/=.*/=${ADMIN_PASSWORD}/" ${APPLICATION_WEB_PROPERTIES}
|
||||||
|
sed -i "/config.sendUsage=/ s/=.*/=${ANALYTICS}/" ${APPLICATION_WEB_PROPERTIES}
|
||||||
|
sed -i "/config.show.applicationStat=/ s/=.*/=${CONFIG_SHOW_APPLICATIONSTAT}/" ${APPLICATION_WEB_PROPERTIES}
|
||||||
|
|
||||||
sed -i "/batch.enable=/ s/=.*/=${BATCH_ENABLE}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.properties
|
sed -i "/hbase.client.host=/ s/=.*/=${HBASE_HOST}/" ${APPLICATION_HBASE_PROPERTIES}
|
||||||
sed -i "/batch.server.ip=/ s/=.*/=${BATCH_SERVER_IP}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.properties
|
sed -i "/hbase.client.port=/ s/=.*/=${HBASE_PORT}/" ${APPLICATION_HBASE_PROPERTIES}
|
||||||
sed -i "/batch.flink.server=/ s/=.*/=${BATCH_FLINK_SERVER}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.properties
|
|
||||||
|
|
||||||
sed -i "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/log4j.xml
|
sed -i "/batch.enable=/ s/=.*/=${BATCH_ENABLE}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/batch.server.ip=/ s/=.*/=${BATCH_SERVER_IP}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/batch.flink.server=/ s/=.*/=${BATCH_FLINK_SERVER}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
|
||||||
|
sed -i "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/profiles/${SPRING_PROFILES}/log4j.xml
|
||||||
|
sed -i "/jdbc.driverClassName=/ s/=.*/=${JDBC_DRIVER:-com.mysql.jdbc.Driver}/" ${APPLICATION_JDBC_PROPERTIES}
|
||||||
|
sed -i "/jdbc.url=/ s/=.*/=${JDBC_URL//\//\\/}/" ${APPLICATION_JDBC_PROPERTIES}
|
||||||
|
sed -i "/jdbc.username=/ s/=.*/=${JDBC_USERNAME:-admin}/" ${APPLICATION_JDBC_PROPERTIES}
|
||||||
|
sed -i "/jdbc.password=/ s/=.*/=${JDBC_PASSWORD:-admin}/" ${APPLICATION_JDBC_PROPERTIES}
|
||||||
|
|
||||||
|
sed -i "/alarm.mail.server.url=/ s/=.*/=${MAIL_SERVER_URL}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.server.port=/ s/=.*/=${MAIL_SERVER_PORT:-587}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.server.username=/ s/=.*/=${MAIL_SERVER_USERNAME}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.server.password=/ s/=.*/=${MAIL_SERVER_PASSWORD}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.sender.address=/ s/=.*/=${MAIL_SENDER_ADDRESS:-pinpoint_operator@pinpoint.com}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
|
||||||
|
sed -i "/alarm.mail.transport.protocol=/ s/=.*/=${MAIL_TRANSPORT_PROTOCOL:-smtp}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.smtp.port=/ s/=.*/=${MAIL_SMTP_PORT:-587}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.smtp.auth=/ s/=.*/=${MAIL_SMTP_AUTH:-false}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.smtp.starttls.enable=/ s/=.*/=${MAIL_SMTP_STARTTLS_ENABLE:-false}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.smtp.starttls.required=/ s/=.*/=${MAIL_SMTP_STARTTLS_REQUIRED:-false}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
sed -i "/alarm.mail.debug=/ s/=.*/=${MAIL_DEBUG:-false}/" ${APPLICATION_BATCH_PROPERTIES}
|
||||||
|
|
||||||
exec /usr/local/tomcat/bin/catalina.sh run
|
exec /usr/local/tomcat/bin/catalina.sh run
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ services:
|
|||||||
- "9997:9997"
|
- "9997:9997"
|
||||||
- "${WEB_PAGE_PORT:-8080}:8080"
|
- "${WEB_PAGE_PORT:-8080}:8080"
|
||||||
environment:
|
environment:
|
||||||
|
- JAVA_OPTS="-Dspring.profiles.active=${SPRING_PROFILES},batch"
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
- CLUSTER_ZOOKEEPER_ADDRESS=${CLUSTER_ZOOKEEPER_ADDRESS}
|
||||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
@@ -30,4 +32,18 @@ services:
|
|||||||
- BATCH_ENABLE=${BATCH_ENABLE}
|
- BATCH_ENABLE=${BATCH_ENABLE}
|
||||||
- BATCH_SERVER_IP=${BATCH_SERVER_IP}
|
- BATCH_SERVER_IP=${BATCH_SERVER_IP}
|
||||||
- BATCH_FLINK_SERVER=${BATCH_FLINK_SERVER}
|
- BATCH_FLINK_SERVER=${BATCH_FLINK_SERVER}
|
||||||
|
- JDBC_DRIVER=${JDBC_DRIVER}
|
||||||
|
- JDBC_URL=${JDBC_URL}
|
||||||
|
- JDBC_USERNAME=${JDBC_USERNAME}
|
||||||
|
- JDBC_PASSWORD=${JDBC_PASSWORD}
|
||||||
|
- MAIL_SERVER_URL=${MAIL_SERVER_URL}
|
||||||
|
- MAIL_SERVER_PORT=${MAIL_SERVER_PORT}
|
||||||
|
- MAIL_SERVER_USERNAME=${MAIL_SERVER_USERNAME}
|
||||||
|
- MAIL_SERVER_PASSWORD=${MAIL_SERVER_PASSWORD}
|
||||||
|
- MAIL_SENDER_ADDRESS=${MAIL_SENDER_ADDRESS}
|
||||||
|
- MAIL_TRANSPORT_PROTOCOL=${MAIL_TRANSPORT_PROTOCOL}
|
||||||
|
- MAIL_SMTP_PORT=${MAIL_SMTP_PORT}
|
||||||
|
- MAIL_SMTP_AUTH=${MAIL_SMTP_AUTH}
|
||||||
|
- MAIL_SMTP_STARTTLS_ENABLE=${MAIL_SMTP_STARTTLS_ENABLE}
|
||||||
|
- MAIL_SMTP_STARTTLS_REQUIRED=${MAIL_SMTP_STARTTLS_REQUIRED}
|
||||||
|
- MAIL_DEBUG=${MAIL_DEBUG}
|
||||||
|
|||||||
Reference in New Issue
Block a user