Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f271a1204 | ||
|
|
958689031c | ||
|
|
c04acf9bca | ||
|
|
cc30618af8 | ||
|
|
477fd5a665 | ||
|
|
e56563c587 | ||
|
|
3ea606f5df | ||
|
|
34cbc98aee | ||
|
|
bbc9d86f72 | ||
|
|
3748be1ab7 | ||
|
|
d26879d8f0 | ||
|
|
bb0667b77a | ||
|
|
3b8638280c | ||
|
|
120e0ebffc | ||
|
|
336efecb9c | ||
|
|
39b9e1e484 | ||
|
|
252f821dee | ||
|
|
76fa2e939e | ||
|
|
9adcc6da1a |
18
.env
18
.env
@@ -1,4 +1,5 @@
|
|||||||
PINPOINT_VERSION=1.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
### Pinpoint-Hbase
|
### Pinpoint-Hbase
|
||||||
|
|
||||||
@@ -53,10 +54,15 @@ MAIL_PROPERTIES_MAIL_STARTTLS_ENABLE=true
|
|||||||
MAIL_PROPERTIES_MAIL_STARTTLS_REQUIRED=true
|
MAIL_PROPERTIES_MAIL_STARTTLS_REQUIRED=true
|
||||||
MAIL_PROPERTIES_MAIL_DEBUG=false
|
MAIL_PROPERTIES_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
|
||||||
@@ -70,10 +76,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
|
||||||
|
|
||||||
|
|||||||
12
Readme.md
12
Readme.md
@@ -13,6 +13,11 @@ It supports and helps you understand your application in a glance and allow you
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 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.3
|
||||||
- 1.8.2
|
- 1.8.2
|
||||||
- 1.8.1
|
- 1.8.1
|
||||||
@@ -73,13 +78,12 @@ For more information checkout [Setting Alarm](http://naver.github.io/pinpoint/al
|
|||||||
|
|
||||||
The Pinpoint-Flink is necessary to use ['Application Inspector'](http://naver.github.io/pinpoint/applicationinspector.html) feature.
|
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 all existing features in Pinpoint.
|
After all containers are started and ready to go. There is one more thing to do to use this features in Pinpoint.
|
||||||
It's not mandatory, but to use all the features and since it's a simple task, let's take care of it.
|
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
|
||||||
|
|||||||
@@ -80,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}"
|
||||||
|
- 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}
|
||||||
@@ -125,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}
|
||||||
@@ -157,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:
|
||||||
@@ -180,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
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
### Pinpoint with Java
|
### Pinpoint with Java
|
||||||
PINPOINT_VERSION=1.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
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.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
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.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
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.8.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.1}
|
||||||
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,9 @@ This Docker image contains the Pinpoint Agent component of the Pinpoint applicat
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
- 1.8.3
|
- 1.8.3
|
||||||
- 1.8.2
|
- 1.8.2
|
||||||
- 1.8.1
|
- 1.8.1
|
||||||
|
|||||||
@@ -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.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
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.8.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.1}
|
||||||
|
|
||||||
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,9 @@ This Docker image contains the Pinpoint Collector component of the Pinpoint appl
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
- 1.8.3
|
- 1.8.3
|
||||||
- 1.8.2
|
- 1.8.2
|
||||||
- 1.8.1
|
- 1.8.1
|
||||||
|
|||||||
@@ -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.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
|
||||||
### Pinpoint-flink
|
### Pinpoint-flink
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
PINPOINT_VERSION=1.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
|
||||||
### 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.8.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.1}
|
||||||
|
|
||||||
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,9 @@ This Docker image contains the Pinpoint Hbase component of the Pinpoint applicat
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
- 1.8.3
|
- 1.8.3
|
||||||
- 1.8.2
|
- 1.8.2
|
||||||
- 1.8.1
|
- 1.8.1
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
PINPOINT_VERSION=1.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
|
||||||
### Pinpoint-mysql
|
### Pinpoint-mysql
|
||||||
MYSQL_ROOT_PASSWORD=root123
|
MYSQL_ROOT_PASSWORD=root123
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
FROM mysql:5.7
|
FROM mysql:5.7
|
||||||
|
|
||||||
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-1.8.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.1}
|
||||||
|
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt-get install -y --no-install-recommends ca-certificates wget \
|
&& 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/$PINPOINT_VERSION/web/src/main/resources/sql/CreateTableStatement-mysql.sql" \
|
&& 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/$PINPOINT_VERSION/web/src/main/resources/sql/SpringBatchJobRepositorySchema-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/CreateTableStatement-mysql.sql \
|
||||||
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql \
|
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql \
|
||||||
&& apt-get purge -y --auto-remove ca-certificates wget
|
&& apt-get purge -y --auto-remove ca-certificates wget
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ This Docker image contains the Pinpoint Mysql component of the Pinpoint applicat
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
- 1.8.3
|
- 1.8.3
|
||||||
- 1.8.2
|
- 1.8.2
|
||||||
- 1.8.1
|
- 1.8.1
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
PINPOINT_VERSION=1.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
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,8 +1,10 @@
|
|||||||
PINPOINT_VERSION=1.8.3
|
PINPOINT_VERSION=2.0.1
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
### Pinpoint-Web
|
### Pinpoint-Web
|
||||||
|
|
||||||
PINPOINT_WEB_NAME=pinpoint-web
|
PINPOINT_WEB_NAME=pinpoint-web
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
WEB_PAGE_PORT=8079
|
WEB_PAGE_PORT=8079
|
||||||
|
|
||||||
|
|||||||
@@ -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.8.3}
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.1}
|
||||||
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/
|
||||||
COPY /build/mail.zip /assets/mail.zip
|
COPY /build/mail.zip /assets/mail.zip
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ This Docker image contains the Pinpoint Web component of the Pinpoint applicatio
|
|||||||
|
|
||||||
## Supported Tags
|
## Supported Tags
|
||||||
|
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
- 1.8.3
|
- 1.8.3
|
||||||
- 1.8.2
|
- 1.8.2
|
||||||
- 1.8.1
|
- 1.8.1
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ sed -i "/admin.password=/ s/=.*/=${ADMIN_PASSWORD}/" /usr/local/tomcat/webapps/R
|
|||||||
sed -i "/config.sendUsage=/ s/=.*/=${ANALYTICS}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
sed -i "/config.sendUsage=/ s/=.*/=${ANALYTICS}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.properties
|
||||||
sed -i "/config.show.applicationStat=/ s/=.*/=${CONFIG_SHOW_APPLICATIONSTAT}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/pinpoint-web.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 "/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 "/batch.enable=/ s/=.*/=${BATCH_ENABLE}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.properties
|
sed -i "/batch.enable=/ s/=.*/=${BATCH_ENABLE}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.properties
|
||||||
sed -i "/batch.server.ip=/ s/=.*/=${BATCH_SERVER_IP}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.properties
|
sed -i "/batch.server.ip=/ s/=.*/=${BATCH_SERVER_IP}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.properties
|
||||||
sed -i "/batch.flink.server=/ s/=.*/=${BATCH_FLINK_SERVER}/" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/batch.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 "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/profiles/${SPRING_PROFILES}/log4j.xml
|
||||||
|
|
||||||
WEB_INF_CLASSES_DIR=/usr/local/tomcat/webapps/ROOT/WEB-INF/classes
|
WEB_INF_CLASSES_DIR=/usr/local/tomcat/webapps/ROOT/WEB-INF/classes
|
||||||
APPLICATION_CONTEXT_WEB_FILE=${WEB_INF_CLASSES_DIR}/applicationContext-web.xml
|
APPLICATION_CONTEXT_WEB_FILE=${WEB_INF_CLASSES_DIR}/applicationContext-web.xml
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
- 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}
|
||||||
|
|||||||
Reference in New Issue
Block a user