v.2.5.3
This commit is contained in:
commit
1e39a6fb26
|
@ -0,0 +1,165 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
|
# Used to make collector ip fixed for external microservices which uses pinpoint agent with collector ip.
|
||||||
|
PINPOINT_NETWORK_SUBNET=172.24.0.0/27
|
||||||
|
COLLECTOR_FIXED_IP=172.24.0.30
|
||||||
|
|
||||||
|
#zookeeper information required
|
||||||
|
PINPOINT_ZOOKEEPER_ADDRESS=zoo1
|
||||||
|
|
||||||
|
### Pinpoint-Hbase
|
||||||
|
|
||||||
|
PINPOINT_HBASE_NAME=pinpoint-hbase
|
||||||
|
AGENTINFO_TTL=31536000
|
||||||
|
AGENTSTATV2_TTL=5184000
|
||||||
|
APPSTATAGGRE_TTL=5184000
|
||||||
|
APPINDEX_TTL=31536000
|
||||||
|
AGENTLIFECYCLE_TTL=5184000
|
||||||
|
AGENTEVENT_TTL=5184000
|
||||||
|
STRINGMETADATA_TTL=15552000
|
||||||
|
APIMETADATA_TTL=31536000
|
||||||
|
SQLMETADATA_TTL=15552000
|
||||||
|
TRACEV2_TTL=5184000
|
||||||
|
APPTRACEINDEX_TTL=5184000
|
||||||
|
APPMAPSTATCALLERV2_TTL=5184000
|
||||||
|
APPMAPSTATCALLEV2_TTL=5184000
|
||||||
|
APPMAPSTATSELFV2_TTL=5184000
|
||||||
|
HOSTAPPMAPV2_TTL=5184000
|
||||||
|
|
||||||
|
### Pinpoint-mysql
|
||||||
|
MYSQL_ROOT_PASSWORD=root123
|
||||||
|
MYSQL_USER=admin
|
||||||
|
MYSQL_PASSWORD=admin
|
||||||
|
MYSQL_DATABASE=pinpoint
|
||||||
|
|
||||||
|
### Pinpoint-Web
|
||||||
|
|
||||||
|
PINPOINT_WEB_NAME=pinpoint-web
|
||||||
|
|
||||||
|
WEB_SERVER_PORT=8080
|
||||||
|
|
||||||
|
WEB_LOGGING_LEVEL_ROOT=INFO
|
||||||
|
|
||||||
|
CLUSTER_ENABLE=true
|
||||||
|
|
||||||
|
ADMIN_PASSWORD=admin
|
||||||
|
|
||||||
|
#analytics
|
||||||
|
CONFIG_SENDUSAGE=true
|
||||||
|
|
||||||
|
CONFIG_SHOW_APPLICATIONSTAT=true
|
||||||
|
|
||||||
|
#mysql information required if used
|
||||||
|
JDBC_DRIVERCLASSNAME=com.mysql.jdbc.Driver
|
||||||
|
JDBC_URL=jdbc:mysql://pinpoint-mysql:3306/pinpoint?characterEncoding=UTF-8
|
||||||
|
JDBC_USERNAME=admin
|
||||||
|
JDBC_PASSWORD=admin
|
||||||
|
|
||||||
|
### Pinpoint-Collector
|
||||||
|
|
||||||
|
PINPOINT_COLLECTOR_NAME=pinpoint-collector
|
||||||
|
|
||||||
|
CLUSTER_ENABLE=true
|
||||||
|
|
||||||
|
COLLECTOR_LOGGING_LEVEL_ROOT=INFO
|
||||||
|
|
||||||
|
#grpc
|
||||||
|
COLLECTOR_RECEIVER_GRPC_AGENT_PORT=9991
|
||||||
|
COLLECTOR_RECEIVER_GRPC_STAT_PORT=9992
|
||||||
|
COLLECTOR_RECEIVER_GRPC_SPAN_PORT=9993
|
||||||
|
|
||||||
|
#thrift
|
||||||
|
COLLECTOR_RECEIVER_BASE_PORT=9994
|
||||||
|
COLLECTOR_RECEIVER_STAT_UDP_PORT=9995
|
||||||
|
COLLECTOR_RECEIVER_SPAN_UDP_PORT=9996
|
||||||
|
|
||||||
|
FLINK_CLUSTER_ENABLE=true
|
||||||
|
FLINK_CLUSTER_ZOOKEEPER_ADDRESS=zoo1
|
||||||
|
|
||||||
|
### Pinpoint-Batch
|
||||||
|
|
||||||
|
PINPOINT_BATCH_NAME=pinpoint-batch
|
||||||
|
|
||||||
|
BATCH_SERVER_PORT=8079
|
||||||
|
|
||||||
|
BATCH_LOGGING_LEVEL_ROOT=INFO
|
||||||
|
|
||||||
|
CLUSTER_ENABLE=true
|
||||||
|
|
||||||
|
ADMIN_PASSWORD=admin
|
||||||
|
|
||||||
|
#analytics
|
||||||
|
CONFIG_SENDUSAGE=true
|
||||||
|
|
||||||
|
#flink server information required if used
|
||||||
|
BATCH_FLINK_SERVER=pinpoint-flink-jobmanager
|
||||||
|
|
||||||
|
CONFIG_SHOW_APPLICATIONSTAT=true
|
||||||
|
|
||||||
|
#mysql information required if used
|
||||||
|
JDBC_DRIVERCLASSNAME=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 if used
|
||||||
|
ALARM_MAIL_SERVER_URL=smtp.gmail.com
|
||||||
|
ALARM_MAIL_SERVER_PORT=587
|
||||||
|
ALARM_MAIL_SERVER_USERNAME=username
|
||||||
|
ALARM_MAIL_SERVER_PASSWORD=password
|
||||||
|
ALARM_MAIL_SENDER_ADDRESS=pinpoint_operator@pinpoint.com
|
||||||
|
ALARM_MAIL_TRANSPORT_PROTOCOL=smtp
|
||||||
|
ALARM_MAIL_SMTP_PORT=25
|
||||||
|
ALARM_MAIL_SMTP_AUTH=false
|
||||||
|
ALARM_MAIL_SMTP_STARTTLS_ENABLE=false
|
||||||
|
ALARM_MAIL_SMTP_STARTTLS_REQUIRED=false
|
||||||
|
ALARM_MAIL_DEBUG=false
|
||||||
|
|
||||||
|
### Pinpoint-Agent
|
||||||
|
|
||||||
|
PINPOINT_AGENT_NAME=pinpoint-agent
|
||||||
|
|
||||||
|
#network module(GRPC,THRIFT)
|
||||||
|
PROFILER_TRANSPORT_MODULE=GRPC
|
||||||
|
|
||||||
|
#collector information required
|
||||||
|
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_STAT_PORT=9995
|
||||||
|
COLLECTOR_SPAN_PORT=9996
|
||||||
|
|
||||||
|
# Sampling Configurations
|
||||||
|
PROFILER_SAMPLING_TYPE=COUNTING
|
||||||
|
PROFILER_SAMPLING_COUNTING_SAMPLING_RATE=1
|
||||||
|
PROFILER_SAMPLING_PERCENT_SAMPLING_RATE=100
|
||||||
|
PROFILER_SAMPLING_NEW_THROUGHPUT=0
|
||||||
|
PROFILER_SAMPLING_CONTINUE_THROUGHPUT=0
|
||||||
|
|
||||||
|
AGENT_ID=app-in-docker
|
||||||
|
APP_NAME=quickapp
|
||||||
|
|
||||||
|
AGENT_DEBUG_LEVEL=INFO
|
||||||
|
|
||||||
|
|
||||||
|
### Pinpoint-flink
|
||||||
|
|
||||||
|
PINPOINT_FLINK_NAME=pinpoint-flink
|
||||||
|
FLINK_WEB_PORT=8081
|
||||||
|
|
||||||
|
|
||||||
|
### Pinpoint-quickstart
|
||||||
|
|
||||||
|
APP_PORT=8085
|
||||||
|
|
||||||
|
### Pinpoint-pinot
|
||||||
|
PINPOINT_PINOT_JDBC_URL=jdbc:pinot://pinot-controller:9000
|
||||||
|
PINPOINT_PINOT_JDBC_USERNAME=admin
|
||||||
|
PINPOINT_PINOT_JDBC_PASSWORD=admin
|
||||||
|
|
||||||
|
### Pinpoint-kafka
|
||||||
|
PINPOINT_METRIC_KAFKA_BOOTSTRAP_SERVERS=pinpoint-kafka:9092
|
|
@ -0,0 +1,73 @@
|
||||||
|
name: Build And Push Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
component:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
dockerfile:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'Dockerfile'
|
||||||
|
tag_postfix:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ''
|
||||||
|
secrets:
|
||||||
|
docker_username:
|
||||||
|
required: true
|
||||||
|
docker_token:
|
||||||
|
required: true
|
||||||
|
docker_password:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registry:
|
||||||
|
name: Push Docker image to Docker Hub
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.docker_username }}
|
||||||
|
password: ${{ secrets.docker_token }}
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4.3.0
|
||||||
|
with:
|
||||||
|
images: pinpointdocker/${{ inputs.component }}
|
||||||
|
flavor: |
|
||||||
|
latest=auto
|
||||||
|
prefix=
|
||||||
|
suffix=${{ inputs.tag_postfix }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: ./${{ inputs.component }}
|
||||||
|
file: ./${{ inputs.component }}/${{ inputs.dockerfile }}
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}${{ inputs.tag_postfix }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
- name: Update repo description
|
||||||
|
uses: peter-evans/dockerhub-description@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.docker_username }}
|
||||||
|
password: ${{ secrets.docker_password }}
|
||||||
|
repository: pinpointdocker/${{ inputs.component }}
|
||||||
|
readme-filepath: ./${{ inputs.component }}/Readme.md
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,100 @@
|
||||||
|
name: Release Images
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [ published ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
agent:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-agent
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
collector:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-collector
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
collector-metric:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-collector
|
||||||
|
dockerfile: Dockerfile-metric
|
||||||
|
tag_postfix: -metric
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
flink:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-flink
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
hbase:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-hbase
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
mysql:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-mysql
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
quickstart:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-quickstart
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
web:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-web
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
web-metric:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-web
|
||||||
|
dockerfile: Dockerfile-metric
|
||||||
|
tag_postfix: -metric
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
batch:
|
||||||
|
uses: pinpoint-apm/pinpoint-docker/.github/workflows/docker-image.yml@master
|
||||||
|
with:
|
||||||
|
component: pinpoint-batch
|
||||||
|
secrets:
|
||||||
|
docker_username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
docker_token: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
docker_password: ${{ secrets.DOCKER_PASSWORD }}
|
|
@ -0,0 +1,2 @@
|
||||||
|
.idea/
|
||||||
|
*.iml
|
|
@ -0,0 +1,201 @@
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright {yyyy} {name of copyright owner}
|
||||||
|
|
||||||
|
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.
|
|
@ -0,0 +1,210 @@
|
||||||
|
|
||||||
|
![Pinpoint](https://github.com/pinpoint-apm/pinpoint-docker/blob/master/docs/logo.png)
|
||||||
|
|
||||||
|
# Pinpoint-Docker for Pinpoint
|
||||||
|
|
||||||
|
Official git repository of Dockerized components of the [Pinpoint Application Monitoring](https://github.com/pinpoint-apm/pinpoint).
|
||||||
|
Installing Pinpoint with these docker files will take approximately 10min. to check out the features of pinpoint.
|
||||||
|
|
||||||
|
## What is Pinpoint
|
||||||
|
|
||||||
|
[Pinpoint](https://github.com/pinpoint-apm/pinpoint), is the world's leading open-source application monitoring solution - trusted by millions of users around the globe.
|
||||||
|
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
|
||||||
|
- 2.4.1
|
||||||
|
- 2.4.0
|
||||||
|
- 2.3.3
|
||||||
|
- 2.3.2
|
||||||
|
- 2.3.1
|
||||||
|
- 2.3.0
|
||||||
|
- 2.2.2
|
||||||
|
- 2.2.1
|
||||||
|
- 2.2.0
|
||||||
|
- 2.1.2
|
||||||
|
- 2.1.0
|
||||||
|
- 2.0.4
|
||||||
|
- 2.0.3
|
||||||
|
- 2.0.2
|
||||||
|
- 2.0.1
|
||||||
|
- Default transport module has changed from THRIFT to gRPC
|
||||||
|
- Spring profiler added (check [homepage](https://pinpoint-apm.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.2
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- [docker 18.02.0+](https://docs.docker.com/compose/compose-file/)
|
||||||
|
|
||||||
|
## How to install Pinpoint?
|
||||||
|
|
||||||
|
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).
|
||||||
|
To monitor your agent see [configuration part](#configurations) for further details.
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/pinpoint-apm/pinpoint-docker.git
|
||||||
|
cd pinpoint-docker
|
||||||
|
docker-compose pull && docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
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 -f docker-compose.yml -f docker-compose-metric.yml build
|
||||||
|
```
|
||||||
|
|
||||||
|
If you are not interested in metric modules, simply remove `-f docker-compose-metric.yml` in docker-compose commands.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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://pinpoint-apm.github.io/pinpoint/alarm.html) in Pinpoint documentation.
|
||||||
|
|
||||||
|
### Flink configuration (optional)
|
||||||
|
|
||||||
|
The Pinpoint-Flink is necessary to use ['Application Inspector'](https://pinpoint-apm.github.io/pinpoint/applicationinspector.html) feature.
|
||||||
|
|
||||||
|
After all containers are started and ready to go. Pinpoint-Flink server is running on [port 8081](http://localhost:8081/).
|
||||||
|
|
||||||
|
### Alarm configuration (optional)
|
||||||
|
|
||||||
|
You can check the [alarm guide document at the homepage](https://pinpoint-apm.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
|
||||||
|
|
||||||
|
### Testing QuickStart application
|
||||||
|
|
||||||
|
Now you are ready to monitor the sample application(Pinpoint-QuickStart [port 8085](http://localhost:8085)) provided.
|
||||||
|
If you can't find any connected application from Pinpoint-Web's first page([port 8080](http://localhost:8080) 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.
|
||||||
|
|
||||||
|
## Monitoring YOUR Application
|
||||||
|
|
||||||
|
Pinpoint-Agent only prepares required libraries for triggering Pinpoint-Agent.
|
||||||
|
Running and configuring agents is manual action done by the user, but don't worry it's very simple.
|
||||||
|
|
||||||
|
If you are not familiar with Pinpoint concept, please read: [Overview](https://pinpoint-apm.github.io/pinpoint/overview.html#architecture),
|
||||||
|
[Agents Installation](https://pinpoint-apm.github.io/pinpoint/installation.html#5-pinpoint-agent)
|
||||||
|
|
||||||
|
**You will need to attach *Pinpoint-Agent* to your application.**
|
||||||
|
|
||||||
|
Running Pinpoint-Agent docker-compose separately, Examples are [here](https://github.com/pinpoint-apm/pinpoint-docker/tree/master/pinpoint-agent-attach-example).
|
||||||
|
Otherwise, you can check how [Pinpoint-Quickstart](https://github.com/pinpoint-apm/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.
|
||||||
|
If containers are separated, ip configurations in `.env` must be changed within.
|
||||||
|
|
||||||
|
For example, if you want your application running from a docker and rest of Pinpoint in another.
|
||||||
|
You can remove *pinpoint-agent* and *pinpoint-quickstart* from docker-compose.yml and run to establish all necessary component of pinpoint.
|
||||||
|
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.
|
||||||
|
|
||||||
|
## 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.
|
||||||
|
With `docker-compose` in this repository. You can create stand-alone containers that are needed to run most of the features in Pinpoint.
|
||||||
|
|
||||||
|
**Ports** can be also configured in .env file.
|
||||||
|
(Default ports are Pinpoint-Web:8080, Pinpoint-Batch:8079, Quickstart:8085 and Flink:8081 as configured in .env file)
|
||||||
|
|
||||||
|
Pinpoint-Zookeeper is just an example of using zookeeper image. You can modify docker-compose files to suit your needs.
|
||||||
|
|
||||||
|
For more specific details on what the values represents in *.env* file. Please check [Pinpoint Github Repository](https://github.com/pinpoint-apm/pinpoint) or
|
||||||
|
[Pinpoint Web properties](https://github.com/pinpoint-apm/pinpoint/blob/master/web/src/main/resources/pinpoint-web-root.properties), [Pinpoint Collector properties](httpshttps://github.com/pinpoint-apm/pinpoint/blob/master/collector/src/main/resources/pinpoint-collector-root.properties), [Pinpoint Agent configuration](https://github.com/pinpoint-apm/pinpoint/blob/master/agent/src/main/resources/pinpoint-root.config).
|
||||||
|
Please note that only essential configuration options are adopted to pinpoint-docker(docker-compose).
|
||||||
|
|
||||||
|
## logs
|
||||||
|
|
||||||
|
You can check logs produced by these services
|
||||||
|
```
|
||||||
|
docker logs <containerId>
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also easily change the log level from *.env* file.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
||||||
|
|
|
@ -0,0 +1,216 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-web:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-web
|
||||||
|
dockerfile: Dockerfile-metric
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
container_name: "${PINPOINT_WEB_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-web:${PINPOINT_VERSION}-metric"
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-hbase
|
||||||
|
- pinpoint-mysql
|
||||||
|
- zoo1
|
||||||
|
- pinpoint-kafka-init
|
||||||
|
- pinot-init
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "9997"
|
||||||
|
ports:
|
||||||
|
- "9997:9997"
|
||||||
|
- "${WEB_SERVER_PORT:-8080}:${WEB_SERVER_PORT:-8080}"
|
||||||
|
environment:
|
||||||
|
- WEB_SERVER_PORT=${WEB_SERVER_PORT}
|
||||||
|
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES},metric
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
- CONFIG_SENDUSAGE=${CONFIG_SENDUSAGE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${WEB_LOGGING_LEVEL_ROOT}
|
||||||
|
- CONFIG_SHOW_APPLICATIONSTAT=${CONFIG_SHOW_APPLICATIONSTAT}
|
||||||
|
- JDBC_DRIVERCLASSNAME=${JDBC_DRIVERCLASSNAME}
|
||||||
|
- JDBC_URL=${JDBC_URL}
|
||||||
|
- JDBC_USERNAME=${JDBC_USERNAME}
|
||||||
|
- JDBC_PASSWORD=${JDBC_PASSWORD}
|
||||||
|
- PINPOINT_PINOT_JDBC_URL=${PINPOINT_PINOT_JDBC_URL}
|
||||||
|
- PINPOINT_PINOT_JDBC_USERNAME=${PINPOINT_PINOT_JDBC_USERNAME}
|
||||||
|
- PINPOINT_PINOT_JDBC_PASSWORD=${PINPOINT_PINOT_JDBC_PASSWORD}
|
||||||
|
links:
|
||||||
|
- "pinpoint-mysql:pinpoint-mysql"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
|
|
||||||
|
pinpoint-collector:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-collector
|
||||||
|
dockerfile: Dockerfile-metric
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
container_name: "${PINPOINT_COLLECTOR_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-collector:${PINPOINT_VERSION}-metric"
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-hbase
|
||||||
|
- zoo1
|
||||||
|
- pinpoint-kafka-init
|
||||||
|
- pinot-init
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "9991"
|
||||||
|
- "9992"
|
||||||
|
- "9993"
|
||||||
|
- "9994"
|
||||||
|
- "9995"
|
||||||
|
- "9996"
|
||||||
|
- "15200"
|
||||||
|
ports:
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_AGENT_PORT:-9991}:9991/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_STAT_PORT:-9992}:9992/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_SPAN_PORT:-9993}:9993/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_BASE_PORT:-9994}:9994"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/udp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/udp"
|
||||||
|
networks:
|
||||||
|
pinpoint:
|
||||||
|
ipv4_address: ${COLLECTOR_FIXED_IP}
|
||||||
|
environment:
|
||||||
|
- SPRING_PROFILES_ACTIVE=local,metric
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${COLLECTOR_LOGGING_LEVEL_ROOT}
|
||||||
|
- FLINK_CLUSTER_ENABLE=${FLINK_CLUSTER_ENABLE}
|
||||||
|
- FLINK_CLUSTER_ZOOKEEPER_ADDRESS=${FLINK_CLUSTER_ZOOKEEPER_ADDRESS}
|
||||||
|
- PINPOINT_PINOT_JDBC_URL=${PINPOINT_PINOT_JDBC_URL}
|
||||||
|
- PINPOINT_PINOT_JDBC_USERNAME=${PINPOINT_PINOT_JDBC_USERNAME}
|
||||||
|
- PINPOINT_PINOT_JDBC_PASSWORD=${PINPOINT_PINOT_JDBC_PASSWORD}
|
||||||
|
- PINPOINT_METRIC_KAFKA_BOOTSTRAP_SERVERS=${PINPOINT_METRIC_KAFKA_BOOTSTRAP_SERVERS}
|
||||||
|
|
||||||
|
pinpoint-kafka:
|
||||||
|
image: ubuntu/kafka:3.1-22.04_beta
|
||||||
|
restart: unless-stopped
|
||||||
|
hostname: pinpoint-kafka
|
||||||
|
command: /etc/kafka/server.properties --override advertised.listeners=PLAINTEXT://pinpoint-kafka:9092
|
||||||
|
depends_on:
|
||||||
|
- pinot-zoo
|
||||||
|
expose:
|
||||||
|
- "9092"
|
||||||
|
environment:
|
||||||
|
- 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
|
||||||
|
restart: "no"
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-kafka
|
||||||
|
entrypoint: >
|
||||||
|
sh -c "/opt/kafka/bin/kafka-topics.sh --create --topic url-stat --bootstrap-server pinpoint-kafka:9092 &&
|
||||||
|
/opt/kafka/bin/kafka-topics.sh --create --topic system-metric-data-type --bootstrap-server pinpoint-kafka:9092 &&
|
||||||
|
/opt/kafka/bin/kafka-topics.sh --create --topic system-metric-tag --bootstrap-server pinpoint-kafka:9092 &&
|
||||||
|
/opt/kafka/bin/kafka-topics.sh --create --topic system-metric-double --bootstrap-server pinpoint-kafka:9092"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
|
pinot-controller:
|
||||||
|
image: apachepinot/pinot:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
command: StartController -zkAddress pinot-zoo
|
||||||
|
depends_on:
|
||||||
|
- pinot-zoo
|
||||||
|
expose:
|
||||||
|
- "9000"
|
||||||
|
ports:
|
||||||
|
- "9000:9000"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
volumes:
|
||||||
|
- pinot-controller-volume:/tmp/data/controller
|
||||||
|
|
||||||
|
pinot-broker-0:
|
||||||
|
image: apachepinot/pinot:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
command: StartBroker -zkAddress pinot-zoo
|
||||||
|
depends_on:
|
||||||
|
- pinot-controller
|
||||||
|
expose:
|
||||||
|
- "8099"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
|
pinot-server-0:
|
||||||
|
image: apachepinot/pinot:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
command: StartServer -zkAddress pinot-zoo
|
||||||
|
depends_on:
|
||||||
|
- pinot-broker-0
|
||||||
|
expose:
|
||||||
|
- "8098"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
volumes:
|
||||||
|
- pinot-server-volume:/tmp/data/server
|
||||||
|
|
||||||
|
pinot-init:
|
||||||
|
image: apachepinot/pinot:latest
|
||||||
|
restart: "no"
|
||||||
|
entrypoint: >
|
||||||
|
sh -c "
|
||||||
|
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/uristat/uristat-common/src/main/pinot/pinot-uriStat-realtime-table.json > uriStatTable.json &&
|
||||||
|
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/uristat/uristat-common/src/main/pinot/pinot-uriStat-schema.json > uriStatSchema.json &&
|
||||||
|
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-tag-realtime-table.json > tagTable.json &&
|
||||||
|
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-tag-schema.json > tagSchema.json &&
|
||||||
|
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-double-realtime-table.json > doubleTable.json &&
|
||||||
|
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-double-schema.json > doubleSchema.json &&
|
||||||
|
curl https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/metric-module/metric/src/main/pinot/pinot-dataType-realtime-table.json > dataTypeTable.json &&
|
||||||
|
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.*/ \"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 &&
|
||||||
|
/opt/pinot/bin/pinot-admin.sh AddTable -schemaFile doubleSchema.json -realtimeTableConfigFile doubleTable.json -controllerHost pinot-controller -controllerPort 9000 -exec &&
|
||||||
|
/opt/pinot/bin/pinot-admin.sh AddTable -schemaFile dataTypeSchema.json -realtimeTableConfigFile dataTypeTable.json -controllerHost pinot-controller -controllerPort 9000 -exec"
|
||||||
|
depends_on:
|
||||||
|
- pinot-server-0
|
||||||
|
- pinpoint-kafka-init
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
|
#zookeepers
|
||||||
|
pinot-zoo:
|
||||||
|
image: zookeeper:3.8.0-temurin
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "2181"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
volumes:
|
||||||
|
- pinot-zoo-data:/data
|
||||||
|
- pinot-zoo-datalog:/datalog
|
||||||
|
|
||||||
|
telegraf:
|
||||||
|
image: telegraf:1.25.0
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-collector
|
||||||
|
entrypoint: >
|
||||||
|
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"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
pinot-zoo-data:
|
||||||
|
pinot-zoo-datalog:
|
||||||
|
pinot-server-volume:
|
||||||
|
pinot-controller-volume:
|
||||||
|
pinot-kafka-volume:
|
|
@ -0,0 +1,418 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-hbase:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-hbase/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_HBASE_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-hbase:${PINPOINT_VERSION}"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
environment:
|
||||||
|
- AGENTINFO_TTL=${AGENTINFO_TTL}
|
||||||
|
- AGENTSTATV2_TTL=${AGENTSTATV2_TTL}
|
||||||
|
- APPSTATAGGRE_TTL=${APPSTATAGGRE_TTL}
|
||||||
|
- APPINDEX_TTL=${APPINDEX_TTL}
|
||||||
|
- AGENTLIFECYCLE_TTL=${AGENTLIFECYCLE_TTL}
|
||||||
|
- AGENTEVENT_TTL=${AGENTEVENT_TTL}
|
||||||
|
- STRINGMETADATA_TTL=${STRINGMETADATA_TTL}
|
||||||
|
- APIMETADATA_TTL=${APIMETADATA_TTL}
|
||||||
|
- SQLMETADATA_TTL=${SQLMETADATA_TTL}
|
||||||
|
- TRACEV2_TTL=${TRACEV2_TTL}
|
||||||
|
- APPTRACEINDEX_TTL=${APPTRACEINDEX_TTL}
|
||||||
|
- APPMAPSTATCALLERV2_TTL=${APPMAPSTATCALLERV2_TTL}
|
||||||
|
- APPMAPSTATCALLEV2_TTL=${APPMAPSTATCALLEV2_TTL}
|
||||||
|
- APPMAPSTATSELFV2_TTL=${APPMAPSTATSELFV2_TTL}
|
||||||
|
- HOSTAPPMAPV2_TTL=${HOSTAPPMAPV2_TTL}
|
||||||
|
volumes:
|
||||||
|
- hbase_data:/home/pinpoint/hbase
|
||||||
|
- /home/pinpoint/zookeeper
|
||||||
|
expose:
|
||||||
|
# HBase Master API port
|
||||||
|
- "60000"
|
||||||
|
# HBase Master Web UI
|
||||||
|
- "16010"
|
||||||
|
# Regionserver API port
|
||||||
|
- "60020"
|
||||||
|
# HBase Regionserver web UI
|
||||||
|
- "16030"
|
||||||
|
ports:
|
||||||
|
- "60000:60000"
|
||||||
|
- "16010:16010"
|
||||||
|
- "60020:60020"
|
||||||
|
- "16030:16030"
|
||||||
|
restart: always
|
||||||
|
depends_on:
|
||||||
|
- zoo1
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
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
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
pinpoint-web:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-web/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_WEB_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-web:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-hbase
|
||||||
|
- pinpoint-mysql
|
||||||
|
- zoo1
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "9997"
|
||||||
|
ports:
|
||||||
|
- "9997:9997"
|
||||||
|
- "${WEB_SERVER_PORT:-8080}:8080"
|
||||||
|
environment:
|
||||||
|
- WEB_SERVER_PORT=${WEB_SERVER_PORT}
|
||||||
|
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES}
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
- CONFIG_SENDUSAGE=${CONFIG_SENDUSAGE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${WEB_LOGGING_LEVEL_ROOT}
|
||||||
|
- CONFIG_SHOW_APPLICATIONSTAT=${CONFIG_SHOW_APPLICATIONSTAT}
|
||||||
|
- JDBC_DRIVERCLASSNAME=${JDBC_DRIVERCLASSNAME}
|
||||||
|
- JDBC_URL=${JDBC_URL}
|
||||||
|
- JDBC_USERNAME=${JDBC_USERNAME}
|
||||||
|
- JDBC_PASSWORD=${JDBC_PASSWORD}
|
||||||
|
links:
|
||||||
|
- "pinpoint-mysql:pinpoint-mysql"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
pinpoint-collector:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-collector/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_COLLECTOR_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-collector:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-hbase
|
||||||
|
- zoo1
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "9991"
|
||||||
|
- "9992"
|
||||||
|
- "9993"
|
||||||
|
- "9994"
|
||||||
|
- "9995"
|
||||||
|
- "9996"
|
||||||
|
ports:
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_AGENT_PORT:-9991}:9991/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_STAT_PORT:-9992}:9992/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_SPAN_PORT:-9993}:9993/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_BASE_PORT:-9994}:9994"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/udp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/udp"
|
||||||
|
networks:
|
||||||
|
pinpoint:
|
||||||
|
ipv4_address: ${COLLECTOR_FIXED_IP}
|
||||||
|
environment:
|
||||||
|
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES}
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${COLLECTOR_LOGGING_LEVEL_ROOT}
|
||||||
|
- FLINK_CLUSTER_ENABLE=${FLINK_CLUSTER_ENABLE}
|
||||||
|
- FLINK_CLUSTER_ZOOKEEPER_ADDRESS=${FLINK_CLUSTER_ZOOKEEPER_ADDRESS}
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
# pinpoint-quickstart:
|
||||||
|
# build:
|
||||||
|
# context: ./pinpoint-quickstart/
|
||||||
|
# dockerfile: Dockerfile
|
||||||
|
|
||||||
|
# container_name: "pinpoint-quickstart"
|
||||||
|
# image: "pinpointdocker/pinpoint-quickstart"
|
||||||
|
# ports:
|
||||||
|
# - "${APP_PORT:-8085}:8080"
|
||||||
|
# volumes:
|
||||||
|
# - data-volume:/pinpoint-agent
|
||||||
|
# environment:
|
||||||
|
# JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dpinpoint.profiler.profiles.active=${SPRING_PROFILES}"
|
||||||
|
# networks:
|
||||||
|
# - pinpoint
|
||||||
|
# depends_on:
|
||||||
|
# - pinpoint-agent
|
||||||
|
# logging:
|
||||||
|
# driver: "json-file"
|
||||||
|
# options:
|
||||||
|
# max-file: "3"
|
||||||
|
# max-size: "10m"
|
||||||
|
|
||||||
|
pinpoint-batch:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-batch/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_BATCH_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-batch:${PINPOINT_VERSION}"
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-hbase
|
||||||
|
- pinpoint-mysql
|
||||||
|
- zoo1
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- BATCH_SERVER_PORT=${BATCH_SERVER_PORT}
|
||||||
|
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES}
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
- CONFIG_SENDUSAGE=${CONFIG_SENDUSAGE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${BATCH_LOGGING_LEVEL_ROOT}
|
||||||
|
- CONFIG_SHOW_APPLICATIONSTAT=${CONFIG_SHOW_APPLICATIONSTAT}
|
||||||
|
- BATCH_FLINK_SERVER=${BATCH_FLINK_SERVER}
|
||||||
|
- JDBC_DRIVERCLASSNAME=${JDBC_DRIVERCLASSNAME}
|
||||||
|
- JDBC_URL=${JDBC_URL}
|
||||||
|
- JDBC_USERNAME=${JDBC_USERNAME}
|
||||||
|
- JDBC_PASSWORD=${JDBC_PASSWORD}
|
||||||
|
- ALARM_MAIL_SERVER_URL=${ALARM_MAIL_SERVER_URL}
|
||||||
|
- ALARM_MAIL_SERVER_PORT=${ALARM_MAIL_SERVER_PORT}
|
||||||
|
- ALARM_MAIL_SERVER_USERNAME=${ALARM_MAIL_SERVER_USERNAME}
|
||||||
|
- ALARM_MAIL_SERVER_PASSWORD=${ALARM_MAIL_SERVER_PASSWORD}
|
||||||
|
- ALARM_MAIL_SENDER_ADDRESS=${ALARM_MAIL_SENDER_ADDRESS}
|
||||||
|
- ALARM_MAIL_TRANSPORT_PROTOCOL=${ALARM_MAIL_TRANSPORT_PROTOCOL}
|
||||||
|
- ALARM_MAIL_SMTP_PORT=${ALARM_MAIL_SMTP_PORT}
|
||||||
|
- ALARM_MAIL_SMTP_AUTH=${ALARM_MAIL_SMTP_AUTH}
|
||||||
|
- ALARM_MAIL_SMTP_STARTTLS_ENABLE=${ALARM_MAIL_SMTP_STARTTLS_ENABLE}
|
||||||
|
- ALARM_MAIL_SMTP_STARTTLS_REQUIRED=${ALARM_MAIL_SMTP_STARTTLS_REQUIRED}
|
||||||
|
- ALARM_MAIL_DEBUG=${ALARM_MAIL_DEBUG}
|
||||||
|
links:
|
||||||
|
- "pinpoint-mysql:pinpoint-mysql"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
pinpoint-agent:
|
||||||
|
build:
|
||||||
|
context: ./pinpoint-agent/
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_AGENT_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-agent:${PINPOINT_VERSION}"
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
volumes:
|
||||||
|
- data-volume:/pinpoint-agent
|
||||||
|
environment:
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
|
- COLLECTOR_IP=${COLLECTOR_IP}
|
||||||
|
- PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}
|
||||||
|
- PROFILER_SAMPLING_TYPE=${PROFILER_SAMPLING_TYPE}
|
||||||
|
- PROFILER_SAMPLING_COUNTING_SAMPLING_RATE=${PROFILER_SAMPLING_COUNTING_SAMPLING_RATE}
|
||||||
|
- PROFILER_SAMPLING_PERCENT_SAMPLING_RATE=${PROFILER_SAMPLING_PERCENT_SAMPLING_RATE}
|
||||||
|
- PROFILER_SAMPLING_NEW_THROUGHPUT=${PROFILER_SAMPLING_NEW_THROUGHPUT}
|
||||||
|
- PROFILER_SAMPLING_CONTINUE_THROUGHPUT=${PROFILER_SAMPLING_CONTINUE_THROUGHPUT}
|
||||||
|
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
|
||||||
|
- PROFILER_TRANSPORT_MODULE=${PROFILER_TRANSPORT_MODULE}
|
||||||
|
depends_on:
|
||||||
|
- pinpoint-collector
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
#zookeepers
|
||||||
|
zoo1:
|
||||||
|
image: zookeeper:3.4.13
|
||||||
|
restart: always
|
||||||
|
hostname: zoo1
|
||||||
|
expose:
|
||||||
|
- "2181"
|
||||||
|
- "2888"
|
||||||
|
- "3888"
|
||||||
|
ports:
|
||||||
|
- "2181"
|
||||||
|
environment:
|
||||||
|
ZOO_MY_ID: 1
|
||||||
|
ZOO_SERVERS: server.1=0.0.0.0:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
zoo2:
|
||||||
|
image: zookeeper:3.4.13
|
||||||
|
restart: always
|
||||||
|
hostname: zoo2
|
||||||
|
expose:
|
||||||
|
- "2181"
|
||||||
|
- "2888"
|
||||||
|
- "3888"
|
||||||
|
ports:
|
||||||
|
- "2181"
|
||||||
|
environment:
|
||||||
|
ZOO_MY_ID: 2
|
||||||
|
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=0.0.0.0:2888:3888 server.3=zoo3:2888:3888
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
zoo3:
|
||||||
|
image: zookeeper:3.4.13
|
||||||
|
restart: always
|
||||||
|
hostname: zoo3
|
||||||
|
expose:
|
||||||
|
- "2181"
|
||||||
|
- "2888"
|
||||||
|
- "3888"
|
||||||
|
ports:
|
||||||
|
- "2181"
|
||||||
|
environment:
|
||||||
|
ZOO_MY_ID: 3
|
||||||
|
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=0.0.0.0:2888:3888
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
##flink
|
||||||
|
jobmanager:
|
||||||
|
build:
|
||||||
|
context: pinpoint-flink
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_FLINK_NAME}-jobmanager"
|
||||||
|
image: "pinpointdocker/pinpoint-flink:${PINPOINT_VERSION}"
|
||||||
|
expose:
|
||||||
|
- "6123"
|
||||||
|
ports:
|
||||||
|
- "${FLINK_WEB_PORT:-8081}:8081"
|
||||||
|
command: standalone-job -p 1 pinpoint-flink-job.jar -spring.profiles.active release
|
||||||
|
environment:
|
||||||
|
- JOB_MANAGER_RPC_ADDRESS=jobmanager
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
depends_on:
|
||||||
|
- zoo1
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
taskmanager:
|
||||||
|
build:
|
||||||
|
context: pinpoint-flink
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_FLINK_NAME}-taskmanager"
|
||||||
|
image: "pinpointdocker/pinpoint-flink:${PINPOINT_VERSION}"
|
||||||
|
expose:
|
||||||
|
- "6121"
|
||||||
|
- "6122"
|
||||||
|
- "19994"
|
||||||
|
ports:
|
||||||
|
- "6121:6121"
|
||||||
|
- "6122:6122"
|
||||||
|
- "19994:19994"
|
||||||
|
depends_on:
|
||||||
|
- zoo1
|
||||||
|
- jobmanager
|
||||||
|
command: taskmanager
|
||||||
|
links:
|
||||||
|
- "jobmanager:jobmanager"
|
||||||
|
environment:
|
||||||
|
- JOB_MANAGER_RPC_ADDRESS=jobmanager
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-file: "3"
|
||||||
|
max-size: "10m"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
data-volume:
|
||||||
|
mysql_data:
|
||||||
|
hbase_data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
pinpoint:
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: ${PINPOINT_NETWORK_SUBNET}
|
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
|
@ -0,0 +1,20 @@
|
||||||
|
### Pinpoint with Java
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
AGENT_ID=java-app-in-docker
|
||||||
|
APP_NAME=JavaAttachExample
|
||||||
|
|
||||||
|
|
||||||
|
#collector information required
|
||||||
|
COLLECTOR_IP=
|
||||||
|
PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=9991
|
||||||
|
PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=9991
|
||||||
|
PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=9992
|
||||||
|
PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=9993
|
||||||
|
|
||||||
|
# Sampling configurations
|
||||||
|
PROFILER_SAMPLING_TYPE=COUNTING
|
||||||
|
PROFILER_SAMPLING_COUNTING_SAMPLING_RATE=1
|
||||||
|
PROFILER_SAMPLING_PERCENT_SAMPLING_RATE=100
|
||||||
|
PROFILER_SAMPLING_NEW_THROUGHPUT=0
|
||||||
|
PROFILER_SAMPLING_CONTINUE_THROUGHPUT=0
|
|
@ -0,0 +1,13 @@
|
||||||
|
FROM java:8
|
||||||
|
|
||||||
|
ARG PINPOINT_VERSION
|
||||||
|
ARG AGENT_ID
|
||||||
|
ARG 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
|
||||||
|
COPY build/Sample.java javasample
|
||||||
|
WORKDIR javasample
|
||||||
|
|
||||||
|
RUN javac Sample.java
|
||||||
|
CMD java ${JAVA_OPTS} Sample
|
|
@ -0,0 +1,14 @@
|
||||||
|
public class Sample {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.out.println("Sample Java Start");
|
||||||
|
try {
|
||||||
|
while (true) {
|
||||||
|
Thread.sleep(1000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (java.lang.InterruptedException e) {
|
||||||
|
System.out.println("Test Finished");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
version: "2.1"
|
||||||
|
|
||||||
|
services:
|
||||||
|
java:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
- AGENT_ID=${AGENT_ID}
|
||||||
|
- APP_NAME=${APP_NAME}
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
|
container_name: "java"
|
||||||
|
image: "Your Image"
|
||||||
|
|
||||||
|
volumes_from:
|
||||||
|
- container:pinpoint-agent
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external:
|
||||||
|
name: pinpoint-agent_pinpoint
|
|
@ -0,0 +1,6 @@
|
||||||
|
### Pinpoint with Tomcat
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
APP_PORT=8085
|
||||||
|
AGENT_ID=app-in-docker
|
||||||
|
APP_NAME=quickapp
|
|
@ -0,0 +1,22 @@
|
||||||
|
version: "2.1"
|
||||||
|
|
||||||
|
services:
|
||||||
|
tomcat:
|
||||||
|
#build if needed
|
||||||
|
# build:
|
||||||
|
# context: .
|
||||||
|
# dockerfile: Dockerfile
|
||||||
|
container_name: "tomcat"
|
||||||
|
image: "Your Image"
|
||||||
|
ports:
|
||||||
|
- "${APP_PORT:-8085}:8080"
|
||||||
|
volumes_from:
|
||||||
|
- container:pinpoint-agent
|
||||||
|
environment:
|
||||||
|
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
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external:
|
||||||
|
name: pinpoint-agent_pinpoint
|
|
@ -0,0 +1,47 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
|
### Pinpoint-Agent
|
||||||
|
|
||||||
|
PINPOINT_AGENT_NAME=pinpoint-agent
|
||||||
|
|
||||||
|
#network module(GRPC,THRIFT)
|
||||||
|
PROFILER_TRANSPORT_MODULE=GRPC
|
||||||
|
|
||||||
|
#collector information required
|
||||||
|
COLLECTOR_IP=
|
||||||
|
PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=9991
|
||||||
|
PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=9991
|
||||||
|
PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=9992
|
||||||
|
PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=9993
|
||||||
|
COLLECTOR_TCP_PORT=9994
|
||||||
|
COLLECTOR_STAT_PORT=9995
|
||||||
|
COLLECTOR_SPAN_PORT=9996
|
||||||
|
|
||||||
|
# Profiler Sampling Configurations
|
||||||
|
# If this value set to COUNTING(default), sampling rate is 1/n.
|
||||||
|
# If this value set to PERCENT, sampling rate is n%.
|
||||||
|
PROFILER_SAMPLING_TYPE=COUNTING
|
||||||
|
|
||||||
|
# depend on profiler.samplging.rate.type,
|
||||||
|
|
||||||
|
# if it's COUNTING(the default), then 1 out of n transactions will be sampled where n is the rate.
|
||||||
|
# eg. 1: 100% 20: 5% 50: 2% 100: 1%
|
||||||
|
PROFILER_SAMPLING_COUNTING_SAMPLING_RATE=1
|
||||||
|
|
||||||
|
# if it's PERCENT, then first x transactions out of y transactions will be sampled.
|
||||||
|
# Support from 100% to 0.01%
|
||||||
|
# eg. 100: 100% 50: 50% 5: 5% 0.01: 0.01%
|
||||||
|
PROFILER_SAMPLING_PERCENT_SAMPLING_RATE=100
|
||||||
|
|
||||||
|
# Permits per second, if throughput is 0, it is unlimited.
|
||||||
|
# "New" is a transaction that is newly traced.
|
||||||
|
PROFILER_SAMPLING_NEW_THROUGHPUT=0
|
||||||
|
# "Continue" is a transaction that is already being tracked.
|
||||||
|
PROFILER_SAMPLING_CONTINUE_THROUGHPUT=0
|
||||||
|
|
||||||
|
|
||||||
|
AGENT_ID=app-in-docker
|
||||||
|
APP_NAME=quickapp
|
||||||
|
|
||||||
|
AGENT_DEBUG_LEVEL=INFO
|
|
@ -0,0 +1,22 @@
|
||||||
|
FROM alpine:3.7
|
||||||
|
|
||||||
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.5.3}
|
||||||
|
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-agent-${PINPOINT_VERSION}.tar.gz
|
||||||
|
|
||||||
|
COPY /build/scripts/configure-agent.sh /usr/local/bin/
|
||||||
|
|
||||||
|
RUN apk add --update curl bash \
|
||||||
|
&& chmod a+x /usr/local/bin/configure-agent.sh \
|
||||||
|
&& mkdir -p /pinpoint-agent \
|
||||||
|
&& chmod -R o+x /pinpoint-agent \
|
||||||
|
&& curl -SL ${INSTALL_URL} -o pinpoint-agent.tar.gz \
|
||||||
|
&& gunzip pinpoint-agent.tar.gz \
|
||||||
|
&& tar -xf pinpoint-agent.tar --strip 1 -C /pinpoint-agent \
|
||||||
|
&& rm pinpoint-agent.tar \
|
||||||
|
&& apk del curl \
|
||||||
|
&& rm /var/cache/apk/*
|
||||||
|
|
||||||
|
VOLUME ["/pinpoint-agent"]
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/configure-agent.sh"]
|
||||||
|
CMD ["tail", "-f", "/dev/null"]
|
|
@ -0,0 +1,62 @@
|
||||||
|
|
||||||
|
## Pinpoint Agent
|
||||||
|
|
||||||
|
This Docker image contains the Pinpoint Agent component of the Pinpoint application monitoring system.
|
||||||
|
|
||||||
|
## Supported Tags
|
||||||
|
- 2.5.3
|
||||||
|
- 2.5.2
|
||||||
|
- 2.5.1
|
||||||
|
- 2.5.0
|
||||||
|
- 2.4.2
|
||||||
|
- 2.4.1
|
||||||
|
- 2.4.0
|
||||||
|
- 2.3.3
|
||||||
|
- 2.3.2
|
||||||
|
- 2.3.1
|
||||||
|
- 2.3.0
|
||||||
|
- 2.2.2
|
||||||
|
- 2.2.1
|
||||||
|
- 2.2.0
|
||||||
|
- 2.1.2
|
||||||
|
- 2.1.0
|
||||||
|
- 2.0.4
|
||||||
|
- 2.0.3
|
||||||
|
- 2.0.2
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
|
- 1.8.3
|
||||||
|
- 1.8.2
|
||||||
|
- 1.8.1
|
||||||
|
- 1.8.0
|
||||||
|
- 1.7.3
|
||||||
|
- 1.7.2
|
||||||
|
|
||||||
|
Please see [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
#sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/pinpoint.config
|
||||||
|
sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
|
||||||
|
sed -i "/profiler.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
sed -i "/profiler.collector.tcp.port=/ s/=.*/=${COLLECTOR_TCP_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||||
|
sed -i "/profiler.collector.stat.port=/ s/=.*/=${COLLECTOR_STAT_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||||
|
sed -i "/profiler.collector.span.port=/ s/=.*/=${COLLECTOR_SPAN_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||||
|
|
||||||
|
#sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/pinpoint.config
|
||||||
|
sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
sed -i "/profiler.transport.grpc.agent.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||||
|
sed -i "/profiler.transport.grpc.metadata.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||||
|
sed -i "/profiler.transport.grpc.stat.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||||
|
sed -i "/profiler.transport.grpc.span.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config
|
||||||
|
sed -i "/profiler.sampling.type=/ s/=.*/=${PROFILER_SAMPLING_TYPE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
sed -i "/profiler.sampling.counting.sampling-rate=/ s/=.*/=${PROFILER_SAMPLING_COUNTING_SAMPLING_RATE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
sed -i "/profiler.sampling.percent.sampling-rate=/ s/=.*/=${PROFILER_SAMPLING_PERCENT_SAMPLING_RATE}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
sed -i "/profiler.sampling.new.throughput=/ s/=.*/=${PROFILER_SAMPLING_NEW_THROUGHPUT}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
sed -i "/profiler.sampling.continue.throughput=/ s/=.*/=${PROFILER_SAMPLING_CONTINUE_THROUGHPUT}/" /pinpoint-agent/profiles/local/pinpoint.config /pinpoint-agent/profiles/release/pinpoint.config
|
||||||
|
|
||||||
|
sed -i "/Root level=/ s/=.*/=\"${DEBUG_LEVEL}\">/g" /pinpoint-agent/profiles/local/log4j2.xml /pinpoint-agent/profiles/release/log4j2.xml
|
||||||
|
|
||||||
|
exec "$@"
|
|
@ -0,0 +1,43 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
#pinpoint-agent image will not usually be used alone
|
||||||
|
services:
|
||||||
|
pinpoint-agent:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_AGENT_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-agent:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- pinpoint-agent
|
||||||
|
environment:
|
||||||
|
- COLLECTOR_IP=${COLLECTOR_IP}
|
||||||
|
- PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_STAT_COLLECTOR_PORT=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}
|
||||||
|
- PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}
|
||||||
|
- PROFILER_SAMPLING_TYPE=${PROFILER_SAMPLING_TYPE}
|
||||||
|
- PROFILER_SAMPLING_COUNTING_SAMPLING_RATE=${PROFILER_SAMPLING_COUNTING_SAMPLING_RATE}
|
||||||
|
- PROFILER_SAMPLING_PERCENT_SAMPLING_RATE=${PROFILER_SAMPLING_PERCENT_SAMPLING_RATE}
|
||||||
|
- PROFILER_SAMPLING_NEW_THROUGHPUT=${PROFILER_SAMPLING_NEW_THROUGHPUT}
|
||||||
|
- PROFILER_SAMPLING_CONTINUE_THROUGHPUT=${PROFILER_SAMPLING_CONTINUE_THROUGHPUT}
|
||||||
|
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
|
||||||
|
- PROFILER_TRANSPORT_MODULE=${PROFILER_TRANSPORT_MODULE}
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
|
#networks:
|
||||||
|
# default:
|
||||||
|
# external:
|
||||||
|
# name: pinpoint
|
||||||
|
|
||||||
|
networks:
|
||||||
|
pinpoint:
|
||||||
|
driver: bridge
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
|
### Pinpoint-Batch
|
||||||
|
|
||||||
|
PINPOINT_BATCH_NAME=pinpoint-batch
|
||||||
|
|
||||||
|
BATCH_SERVER_PORT=8079
|
||||||
|
#zookeeper information required
|
||||||
|
PINPOINT_ZOOKEEPER_ADDRESS=
|
||||||
|
|
||||||
|
BATCH_LOGGING_LEVEL_ROOT=INFO
|
||||||
|
|
||||||
|
CLUSTER_ENABLE=true
|
||||||
|
|
||||||
|
ADMIN_PASSWORD=admin
|
||||||
|
|
||||||
|
#analytics
|
||||||
|
CONFIG_SENDUSAGE=true
|
||||||
|
|
||||||
|
#flink server information required if used
|
||||||
|
BATCH_FLINK_SERVER=pinpoint-flink-jobmanager
|
||||||
|
|
||||||
|
CONFIG_SHOW_APPLICATIONSTAT=true
|
||||||
|
|
||||||
|
#mysql information required if used
|
||||||
|
JDBC_DRIVERCLASSNAME=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 if used
|
||||||
|
ALARM_MAIL_SERVER_URL=smtp.gmail.com
|
||||||
|
ALARM_MAIL_SERVER_PORT=587
|
||||||
|
ALARM_MAIL_SERVER_USERNAME=username
|
||||||
|
ALARM_MAIL_SERVER_PASSWORD=password
|
||||||
|
ALARM_MAIL_SENDER_ADDRESS=pinpoint_operator@pinpoint.com
|
||||||
|
ALARM_MAIL_TRANSPORT_PROTOCOL=smtp
|
||||||
|
ALARM_MAIL_SMTP_PORT=25
|
||||||
|
ALARM_MAIL_SMTP_AUTH=false
|
||||||
|
ALARM_MAIL_SMTP_STARTTLS_ENABLE=false
|
||||||
|
ALARM_MAIL_SMTP_STARTTLS_REQUIRED=false
|
||||||
|
ALARM_MAIL_DEBUG=false
|
|
@ -0,0 +1,17 @@
|
||||||
|
FROM openjdk:11.0.16-jre-slim-buster
|
||||||
|
|
||||||
|
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 \
|
||||||
|
&& mkdir -p /pinpoint/scripts
|
||||||
|
|
||||||
|
COPY /build/config/pinpoint-batch.properties /pinpoint/config/
|
||||||
|
COPY /build/scripts/start-batch.sh /pinpoint/scripts/
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
||||||
|
&& chmod a+x /pinpoint/scripts/start-batch.sh \
|
||||||
|
&& chmod a+x /pinpoint/config/pinpoint-batch.properties \
|
||||||
|
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-batch.jar
|
||||||
|
|
||||||
|
ENTRYPOINT ["sh", "/pinpoint/scripts/start-batch.sh"]
|
|
@ -0,0 +1,40 @@
|
||||||
|
## Pinpoint Batch
|
||||||
|
|
||||||
|
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
|
||||||
|
- 2.4.1
|
||||||
|
- 2.4.0
|
||||||
|
|
||||||
|
Please see the [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
|
@ -0,0 +1,8 @@
|
||||||
|
##########
|
||||||
|
# another way of setting properties.
|
||||||
|
# applied priority '.ENV' -> 'pinpoint-web.properties'
|
||||||
|
# property should be commented in docker-compose file to use
|
||||||
|
# ex) PINPOINT_ZOOKEEPER_ADDRESS should be commented in docker-compose to use pinpoint.zookeeper.address below
|
||||||
|
##########
|
||||||
|
|
||||||
|
pinpoint.zookeeper.address=
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
exec java -jar /pinpoint/pinpoint-batch.jar --spring.config.additional-location=/pinpoint/config/pinpoint-batch.properties
|
|
@ -0,0 +1,43 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-batch:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_BATCH_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-batch:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "${BATCH_SERVER_PORT:-8079}"
|
||||||
|
ports:
|
||||||
|
- "${BATCH_SERVER_PORT:-8079}:${BATCH_SERVER_PORT:-8079}"
|
||||||
|
environment:
|
||||||
|
- BATCH_SERVER_PORT=${BATCH_SERVER_PORT}
|
||||||
|
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES}
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
- CONFIG_SENDUSAGE=${CONFIG_SENDUSAGE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${BATCH_LOGGING_LEVEL_ROOT}
|
||||||
|
- CONFIG_SHOW_APPLICATIONSTAT=${CONFIG_SHOW_APPLICATIONSTAT}
|
||||||
|
- BATCH_FLINK_SERVER=${BATCH_FLINK_SERVER}
|
||||||
|
- JDBC_DRIVERCLASSNAME=${JDBC_DRIVERCLASSNAME}
|
||||||
|
- JDBC_URL=${JDBC_URL}
|
||||||
|
- JDBC_USERNAME=${JDBC_USERNAME}
|
||||||
|
- JDBC_PASSWORD=${JDBC_PASSWORD}
|
||||||
|
- ALARM_MAIL_SERVER_URL=${ALARM_MAIL_SERVER_URL}
|
||||||
|
- ALARM_MAIL_SERVER_PORT=${ALARM_MAIL_SERVER_PORT}
|
||||||
|
- ALARM_MAIL_SERVER_USERNAME=${ALARM_MAIL_SERVER_USERNAME}
|
||||||
|
- ALARM_MAIL_SERVER_PASSWORD=${ALARM_MAIL_SERVER_PASSWORD}
|
||||||
|
- ALARM_MAIL_SENDER_ADDRESS=${ALARM_MAIL_SENDER_ADDRESS}
|
||||||
|
- ALARM_MAIL_TRANSPORT_PROTOCOL=${ALARM_MAIL_TRANSPORT_PROTOCOL}
|
||||||
|
- ALARM_MAIL_SMTP_PORT=${ALARM_MAIL_SMTP_PORT}
|
||||||
|
- ALARM_MAIL_SMTP_AUTH=${ALARM_MAIL_SMTP_AUTH}
|
||||||
|
- ALARM_MAIL_SMTP_STARTTLS_ENABLE=${ALARM_MAIL_SMTP_STARTTLS_ENABLE}
|
||||||
|
- ALARM_MAIL_SMTP_STARTTLS_REQUIRED=${ALARM_MAIL_SMTP_STARTTLS_REQUIRED}
|
||||||
|
- ALARM_MAIL_DEBUG=${ALARM_MAIL_DEBUG}
|
|
@ -0,0 +1,28 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
|
### Pinpoint-Collector
|
||||||
|
|
||||||
|
PINPOINT_COLLECTOR_NAME=pinpoint-collector
|
||||||
|
|
||||||
|
#zookeeper information required
|
||||||
|
PINPOINT_ZOOKEEPER_ADDRESS=
|
||||||
|
|
||||||
|
CLUSTER_ENABLE=true
|
||||||
|
|
||||||
|
COLLECTOR_LOGGING_LEVEL_ROOT=INFO
|
||||||
|
|
||||||
|
#grpc
|
||||||
|
COLLECTOR_RECEIVER_GRPC_AGENT_PORT=9991
|
||||||
|
COLLECTOR_RECEIVER_GRPC_STAT_PORT=9992
|
||||||
|
COLLECTOR_RECEIVER_GRPC_SPAN_PORT=9993
|
||||||
|
|
||||||
|
#thrift
|
||||||
|
COLLECTOR_RECEIVER_BASE_PORT=9994
|
||||||
|
COLLECTOR_RECEIVER_STAT_UDP_PORT=9995
|
||||||
|
COLLECTOR_RECEIVER_SPAN_UDP_PORT=9996
|
||||||
|
|
||||||
|
FLINK_CLUSTER_ENABLE=true
|
||||||
|
FLINK_CLUSTER_ZOOKEEPER_ADDRESS=
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
FROM openjdk:11.0.16-jre-slim-buster
|
||||||
|
|
||||||
|
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 \
|
||||||
|
&& mkdir -p /pinpoint/scripts
|
||||||
|
|
||||||
|
COPY /build/config/pinpoint-collector.properties /pinpoint/config/
|
||||||
|
COPY /build/scripts/start-collector.sh /pinpoint/scripts/
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
||||||
|
&& chmod a+x /pinpoint/scripts/start-collector.sh \
|
||||||
|
&& chmod a+x /pinpoint/config/pinpoint-collector.properties \
|
||||||
|
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-collector-boot.jar
|
||||||
|
|
||||||
|
ENTRYPOINT ["sh", "/pinpoint/scripts/start-collector.sh"]
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
FROM openjdk:11.0.16-jre-slim-buster
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
RUN mkdir -p /pinpoint/config \
|
||||||
|
&& mkdir -p /pinpoint/scripts
|
||||||
|
|
||||||
|
COPY /build/config/pinpoint-collector.properties /pinpoint/config/
|
||||||
|
COPY /build/scripts/start-collector-metric.sh /pinpoint/scripts/
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
||||||
|
&& chmod a+x /pinpoint/scripts/start-collector-metric.sh \
|
||||||
|
&& chmod a+x /pinpoint/config/pinpoint-collector.properties \
|
||||||
|
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-collector-boot.jar
|
||||||
|
|
||||||
|
ENTRYPOINT ["sh", "/pinpoint/scripts/start-collector-metric.sh"]
|
||||||
|
|
|
@ -0,0 +1,65 @@
|
||||||
|
|
||||||
|
## Pinpoint Collector
|
||||||
|
|
||||||
|
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
|
||||||
|
- 2.4.0
|
||||||
|
- 2.3.3
|
||||||
|
- 2.3.2
|
||||||
|
- 2.3.1
|
||||||
|
- 2.3.0
|
||||||
|
- 2.2.2
|
||||||
|
- 2.2.1
|
||||||
|
- 2.2.0
|
||||||
|
- 2.1.2
|
||||||
|
- 2.1.0
|
||||||
|
- 2.0.4
|
||||||
|
- 2.0.3
|
||||||
|
- 2.0.2
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
|
- 1.8.3
|
||||||
|
- 1.8.2
|
||||||
|
- 1.8.1
|
||||||
|
- 1.8.0
|
||||||
|
- 1.7.3
|
||||||
|
- 1.7.2
|
||||||
|
|
||||||
|
Please see [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
|
@ -0,0 +1,8 @@
|
||||||
|
##########
|
||||||
|
# another way of setting properties.
|
||||||
|
# applied priority '.ENV' -> 'pinpoint-collector.properties'
|
||||||
|
# property should be commented in docker-compose file to use
|
||||||
|
# ex) PINPOINT_ZOOKEEPER_ADDRESS should be commented in docker-compose to use pinpoint.zookeeper.address below
|
||||||
|
##########
|
||||||
|
#
|
||||||
|
#pinpoint.zookeeper.address=
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
exec java -jar /pinpoint/pinpoint-collector-boot.jar --spring.config.additional-location=/pinpoint/config/pinpoint-collector.properties --pinpoint.collector.type=ALL
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
exec java -jar /pinpoint/pinpoint-collector-boot.jar --spring.config.additional-location=/pinpoint/config/pinpoint-collector.properties
|
|
@ -0,0 +1,39 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-collector:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_COLLECTOR_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-collector:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "9991"
|
||||||
|
- "9992"
|
||||||
|
- "9993"
|
||||||
|
- "9994"
|
||||||
|
- "9995"
|
||||||
|
- "9996"
|
||||||
|
ports:
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_AGENT_PORT:-9991}:9991/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_STAT_PORT:-9992}:9992/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_GRPC_SPAN_PORT:-9993}:9993/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_BASE_PORT:-9994}:9994"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/tcp"
|
||||||
|
- "${COLLECTOR_RECEIVER_STAT_UDP_PORT:-9995}:9995/udp"
|
||||||
|
- "${COLLECTOR_RECEIVER_SPAN_UDP_PORT:-9996}:9996/udp"
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- JAVA_OPTS="-Dspring.profiles.active=${SPRING_PROFILES}"
|
||||||
|
- SPRING_PROFILES=${SPRING_PROFILES}
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${COLLECTOR_LOGGING_LEVEL_ROOT}
|
||||||
|
- FLINK_CLUSTER_ENABLE=${FLINK_CLUSTER_ENABLE}
|
||||||
|
- FLINK_CLUSTER_ZOOKEEPER_ADDRESS=${FLINK_CLUSTER_ZOOKEEPER_ADDRESS}
|
|
@ -0,0 +1,8 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
|
||||||
|
### Pinpoint-flink
|
||||||
|
|
||||||
|
PINPOINT_ZOOKEEPER_ADDRESS=zookeeper
|
||||||
|
PINPOINT_FLINK_NAME=pinpoint-flink
|
||||||
|
FLINK_WEB_PORT=8081
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
FROM flink:1.14-java11
|
||||||
|
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 \
|
||||||
|
&& apt-get install --no-install-recommends -y zip \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
&& mkdir -p /build \
|
||||||
|
&& curl -SL ${INSTALL_URL} -o /build/pinpoint-flink-job.jar
|
||||||
|
|
||||||
|
COPY build/ /build/
|
||||||
|
COPY docker-bin/ /docker-bin/
|
||||||
|
ENTRYPOINT ["/docker-bin/docker-entrypoint.sh"]
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
|
||||||
|
## Pinpoint Flink
|
||||||
|
|
||||||
|
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
|
||||||
|
- 2.4.1
|
||||||
|
- 2.4.0
|
||||||
|
- 2.3.3
|
||||||
|
- 2.3.2
|
||||||
|
- 2.3.1
|
||||||
|
- 2.3.0
|
||||||
|
|
||||||
|
Please see the [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
|
@ -0,0 +1,30 @@
|
||||||
|
hbase.client.host=#PINPOINT_ZOOKEEPER_ADDRESS#
|
||||||
|
hbase.client.port=2181
|
||||||
|
|
||||||
|
# hbase default:/hbase
|
||||||
|
hbase.zookeeper.znode.parent=/hbase
|
||||||
|
|
||||||
|
# hbase namespace to use default:default
|
||||||
|
hbase.namespace=default
|
||||||
|
|
||||||
|
# hbase timeout option==================================================================================
|
||||||
|
# hbase default:true
|
||||||
|
hbase.ipc.client.tcpnodelay=true
|
||||||
|
# hbase default:60000
|
||||||
|
hbase.rpc.timeout=10000
|
||||||
|
# hbase default:Integer.MAX_VALUE
|
||||||
|
hbase.client.operation.timeout=10000
|
||||||
|
# hbase default: 20m
|
||||||
|
hbase.client.meta.operation.timeout=10000
|
||||||
|
|
||||||
|
# hbase socket read timeout. default: 200000
|
||||||
|
hbase.ipc.client.socket.timeout.read=20000
|
||||||
|
# socket write timeout. hbase default: 600000
|
||||||
|
hbase.ipc.client.socket.timeout.write=30000
|
||||||
|
|
||||||
|
#==================================================================================
|
||||||
|
# hbase client thread pool option
|
||||||
|
hbase.client.thread.max=128
|
||||||
|
hbase.client.threadPool.queueSize=5120
|
||||||
|
# prestartAllCoreThreads
|
||||||
|
hbase.client.threadPool.prestart=false
|
|
@ -0,0 +1,59 @@
|
||||||
|
# configure l4 ip address to ignore health check logs
|
||||||
|
collector.l4.ip=
|
||||||
|
|
||||||
|
# base data receiver config ---------------------------------------------------------------------
|
||||||
|
collector.receiver.base.ip=0.0.0.0
|
||||||
|
collector.receiver.base.port=19994
|
||||||
|
|
||||||
|
# number of tcp worker threads
|
||||||
|
collector.receiver.base.worker.threadSize=8
|
||||||
|
# capacity of tcp worker queue
|
||||||
|
collector.receiver.base.worker.queueSize=1024
|
||||||
|
# monitoring for tcp worker
|
||||||
|
collector.receiver.base.worker.monitor=true
|
||||||
|
|
||||||
|
# change OS level read/write socket buffer size (for linux)
|
||||||
|
#sudo sysctl -w net.core.rmem_max=
|
||||||
|
#sudo sysctl -w net.core.wmem_max=
|
||||||
|
# check current values using:
|
||||||
|
#$ /sbin/sysctl -a | grep -e rmem -e wmem
|
||||||
|
|
||||||
|
# number of agent event worker threads
|
||||||
|
collector.agentEventWorker.threadSize=4
|
||||||
|
# capacity of agent event worker queue
|
||||||
|
collector.agentEventWorker.queueSize=1024
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
# The cluster related options are used to establish connections between the agent, collector, and web in order to send/receive data between them in real time.
|
||||||
|
# You may enable additional features using this option (Ex : RealTime Active Thread Chart).
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
# Usage : Set the following options for collector/web components that reside in the same cluster in order to enable this feature.
|
||||||
|
# 1. cluster.enable (pinpoint-web-root.properties, pinpoint-flink.properties) - "true" to enable
|
||||||
|
# 2. cluster.zookeeper.address (pinpoint-web-root.properties, pinpoint-flink.properties) - address of the ZooKeeper instance that will be used to manage the cluster
|
||||||
|
# 3. cluster.web.tcp.port (pinpoint-web-root.properties) - any available port number (used to establish connection between web and collector)
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
# Please be aware of the following:
|
||||||
|
#1. If the network between web, collector, and the agents are not stable, it is advisable not to use this feature.
|
||||||
|
#2. We recommend using the cluster.web.tcp.port option. However, in cases where the collector is unable to establish connection to the web, you may reverse this and make the web establish connection to the collector.
|
||||||
|
# In this case, you must set cluster.connect.address (pinpoint-web-root.properties); and cluster.listen.ip, cluster.listen.port (pinpoint-flink.properties) accordingly.
|
||||||
|
cluster.enable=false
|
||||||
|
cluster.zookeeper.address=#PINPOINT_ZOOKEEPER_ADDRESS#
|
||||||
|
cluster.zookeeper.sessiontimeout=30000
|
||||||
|
cluster.listen.ip=
|
||||||
|
cluster.listen.port=-1
|
||||||
|
|
||||||
|
#collector.admin.password=
|
||||||
|
#collector.admin.api.rest.active=
|
||||||
|
#collector.admin.api.jmx.active=
|
||||||
|
|
||||||
|
collector.spanEvent.sequence.limit=10000
|
||||||
|
|
||||||
|
# flink cluster
|
||||||
|
flink.cluster.enable=true
|
||||||
|
flink.cluster.zookeeper.address=#PINPOINT_ZOOKEEPER_ADDRESS#
|
||||||
|
flink.cluster.zookeeper.sessiontimeout=3000
|
||||||
|
flink.cluster.zookeeper.retry.interval=5000
|
||||||
|
flink.cluster.tcp.port=19994
|
||||||
|
|
||||||
|
# flink env init
|
||||||
|
flink.StreamExecutionEnvironment=server
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# In flink version < 1.11 we can't use "job cluster" because it's not yet available
|
||||||
|
if [ "$1" = "standalone-job" ]; then
|
||||||
|
if [ -e /build/pinpoint-flink-job.jar ]; then
|
||||||
|
cd /build
|
||||||
|
zip -d pinpoint-flink-job.jar "profiles/release/*.properties"
|
||||||
|
sed -i -e "s/#PINPOINT_ZOOKEEPER_ADDRESS#/${PINPOINT_ZOOKEEPER_ADDRESS}/g" profiles/release/*
|
||||||
|
zip -r pinpoint-flink-job.jar profiles/
|
||||||
|
cd -
|
||||||
|
|
||||||
|
mv /build/pinpoint-flink-job.jar pinpoint-flink-job.jar
|
||||||
|
fi
|
||||||
|
|
||||||
|
shift
|
||||||
|
|
||||||
|
/docker-entrypoint.sh jobmanager &
|
||||||
|
sleep 5
|
||||||
|
if ! flink list | grep 'RUNNING'; then
|
||||||
|
flink run $@
|
||||||
|
fi
|
||||||
|
wait
|
||||||
|
else
|
||||||
|
exec /docker-entrypoint.sh $@
|
||||||
|
fi
|
|
@ -0,0 +1,48 @@
|
||||||
|
version: "3.6"
|
||||||
|
##
|
||||||
|
#to use this separately will require pinpoint-flink-job-{version}.jar built
|
||||||
|
#from pinpoint-flink module with correct properties under hbase.properties, pinpoint-flink.properties
|
||||||
|
#sample configs used to build pinpoint-flink/build/pinpoint-flink-job-{version}.jar is under build folder
|
||||||
|
##
|
||||||
|
services:
|
||||||
|
##flink
|
||||||
|
jobmanager:
|
||||||
|
build: Dockerfile
|
||||||
|
container_name: "${PINPOINT_FLINK_NAME}-jobmanager"
|
||||||
|
image: ${PINPOINT_FLINK_NAME}-flink:dev
|
||||||
|
expose:
|
||||||
|
- "6123"
|
||||||
|
ports:
|
||||||
|
- "${FLINK_WEB_PORT:-8081}:8081"
|
||||||
|
command: standalone-job -p 1 pinpoint-flink-job.jar -spring.profiles.active release
|
||||||
|
environment:
|
||||||
|
- JOB_MANAGER_RPC_ADDRESS=jobmanager
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
|
taskmanager:
|
||||||
|
build: Dockerfile
|
||||||
|
container_name: "${PINPOINT_FLINK_NAME}-taskmanager"
|
||||||
|
image: ${PINPOINT_FLINK_NAME}-flink:dev
|
||||||
|
expose:
|
||||||
|
- "6121"
|
||||||
|
- "6122"
|
||||||
|
- "19994"
|
||||||
|
ports:
|
||||||
|
- "6121:6121"
|
||||||
|
- "6122:6122"
|
||||||
|
- "19994:19994"
|
||||||
|
depends_on:
|
||||||
|
- jobmanager
|
||||||
|
command: taskmanager
|
||||||
|
links:
|
||||||
|
- "jobmanager:jobmanager"
|
||||||
|
environment:
|
||||||
|
- JOB_MANAGER_RPC_ADDRESS=jobmanager
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
|
||||||
|
networks:
|
||||||
|
pinpoint:
|
||||||
|
driver: bridge
|
|
@ -0,0 +1,8 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
HBASE_VERSION=1.2.6
|
||||||
|
### Pinpoint-Hbase
|
||||||
|
|
||||||
|
PINPOINT_HBASE_NAME=pinpoint-hbase
|
||||||
|
#config for hbase in external docker
|
||||||
|
EXTERNAL_HBASE_PORT=2181
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
FROM openjdk:8u342-slim
|
||||||
|
|
||||||
|
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 BASE_DIR=/opt/hbase
|
||||||
|
ENV HBASE_HOME=${BASE_DIR}/hbase-${HBASE_VERSION}
|
||||||
|
|
||||||
|
COPY hbase-site.xml hbase-site.xml
|
||||||
|
COPY hbase-env.sh hbase-env.sh
|
||||||
|
COPY /build/scripts/initialize-hbase.sh /usr/local/bin/
|
||||||
|
COPY /build/scripts/check-table.sh /usr/local/bin/
|
||||||
|
COPY /build/scripts/configure-hbase.sh /usr/local/bin
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
||||||
|
&& chmod a+x /usr/local/bin/initialize-hbase.sh \
|
||||||
|
&& chmod a+x /usr/local/bin/check-table.sh \
|
||||||
|
&& chmod a+x /usr/local/bin/configure-hbase.sh \
|
||||||
|
&& mkdir -p ${BASE_DIR} \
|
||||||
|
&& cd ${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 \
|
||||||
|
&& tar xfvz hbase.tar.gz \
|
||||||
|
&& mv ../../hbase-site.xml ../../${HBASE_HOME}/conf/hbase-site.xml \
|
||||||
|
&& mv ../../hbase-env.sh ../../${HBASE_HOME}/conf/hbase-env.sh \
|
||||||
|
&& curl -SL "https://raw.githubusercontent.com/pinpoint-apm/pinpoint/v${PINPOINT_VERSION}/hbase/scripts/hbase-create.hbase" -o ${BASE_DIR}/hbase-create.hbase
|
||||||
|
|
||||||
|
VOLUME ["/home/pinpoint/hbase", "/home/pinpoint/zookeeper"]
|
||||||
|
|
||||||
|
CMD /usr/local/bin/initialize-hbase.sh && tail -f /dev/null
|
||||||
|
|
|
@ -0,0 +1,62 @@
|
||||||
|
|
||||||
|
## Pinpoint Hbase
|
||||||
|
|
||||||
|
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
|
||||||
|
- 2.4.1
|
||||||
|
- 2.4.0
|
||||||
|
- 2.3.3
|
||||||
|
- 2.3.2
|
||||||
|
- 2.3.1
|
||||||
|
- 2.3.0
|
||||||
|
- 2.2.2
|
||||||
|
- 2.2.1
|
||||||
|
- 2.2.0
|
||||||
|
- 2.1.2
|
||||||
|
- 2.1.0
|
||||||
|
- 2.0.4
|
||||||
|
- 2.0.3
|
||||||
|
- 2.0.2
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
|
- 1.8.3
|
||||||
|
- 1.8.2
|
||||||
|
- 1.8.1
|
||||||
|
- 1.8.0
|
||||||
|
- 1.7.3
|
||||||
|
- 1.7.2
|
||||||
|
|
||||||
|
Please see the [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if echo -e "exists 'HostApplicationMap_Ver2'" | ${HBASE_HOME}/bin/hbase shell 2>&1 | grep -q "does exist" 2>/dev/null
|
||||||
|
then
|
||||||
|
echo "Tables already exist"
|
||||||
|
#sleep 15
|
||||||
|
#${HBASE_HOME}/bin/hbase shell ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
else
|
||||||
|
sleep 15
|
||||||
|
echo "create tables"
|
||||||
|
${HBASE_HOME}/bin/hbase shell ${BASE_DIR}/hbase-create.hbase
|
||||||
|
fi
|
|
@ -0,0 +1,39 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cp ${BASE_DIR}/hbase-create.hbase ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
|
||||||
|
sed -i "/AgentInfo/s/TTL => .[[:digit:]]*/TTL => ${AGENTINFO_TTL:-31536000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/AgentStatV2/s/TTL => .[[:digit:]]*/TTL => ${AGENTSTATV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/ApplicationStatAggre/s/TTL => .[[:digit:]]*/TTL => ${APPSTATAGGRE_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/ApplicationIndex/s/TTL => .[[:digit:]]*/TTL => ${APPINDEX_TTL:-31536000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/AgentLifeCycle/s/TTL => .[[:digit:]]*/TTL => ${AGENTLIFECYCLE_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/AgentEvent/s/TTL => .[[:digit:]]*/TTL => ${AGENTEVENT_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/StringMetaData/s/TTL => .[[:digit:]]*/TTL => ${STRINGMETADATA_TTL:-15552000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/ApiMetaData/s/TTL => .[[:digit:]]*/TTL => ${APIMETADATA_TTL:-31536000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/SqlMetaData_Ver2/s/TTL => .[[:digit:]]*/TTL => ${SQLMETADATA_TTL:-15552000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/TraceV2/s/TTL => .[[:digit:]]*/TTL => ${TRACEV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/ApplicationTraceIndex/s/TTL => .[[:digit:]]*/TTL => ${APPTRACEINDEX_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/ApplicationMapStatisticsCaller_Ver2/s/TTL => .[[:digit:]]*/TTL => ${APPMAPSTATCALLERV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/ApplicationMapStatisticsCallee_Ver2/s/TTL => .[[:digit:]]*/TTL => ${APPMAPSTATCALLEV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/ApplicationMapStatisticsSelf_Ver2/s/TTL => .[[:digit:]]*/TTL => ${APPMAPSTATSELFV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
sed -i "/HostApplicationMap_Ver2/s/TTL => .[[:digit:]]*/TTL => ${HOSTAPPMAPV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-create.hbase
|
||||||
|
|
||||||
|
sed -i "s/create/alter/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/AgentInfo/s/TTL => .[[:digit:]]*/TTL => ${AGENTINFO_TTL:-31536000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/AgentStatV2/s/TTL => .[[:digit:]]*/TTL => ${AGENTSTATV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/ApplicationStatAggre/s/TTL => .[[:digit:]]*/TTL => ${APPSTATAGGRE_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/ApplicationIndex/s/TTL => .[[:digit:]]*/TTL => ${APPINDEX_TTL:-31536000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/AgentLifeCycle/s/TTL => .[[:digit:]]*/TTL => ${AGENTLIFECYCLE_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/AgentEvent/s/TTL => .[[:digit:]]*/TTL => ${AGENTEVENT_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/StringMetaData/s/TTL => .[[:digit:]]*/TTL => ${STRINGMETADATA_TTL:-15552000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/ApiMetaData/s/TTL => .[[:digit:]]*/TTL => ${APIMETADATA_TTL:-31536000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/SqlMetaData_Ver2/s/TTL => .[[:digit:]]*/TTL => ${SQLMETADATA_TTL:-15552000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/TraceV2/s/TTL => .[[:digit:]]*/TTL => ${TRACEV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/ApplicationTraceIndex/s/TTL => .[[:digit:]]*/TTL => ${APPTRACEINDEX_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/ApplicationMapStatisticsCaller_Ver2/s/TTL => .[[:digit:]]*/TTL => ${APPMAPSTATCALLERV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/ApplicationMapStatisticsCallee_Ver2/s/TTL => .[[:digit:]]*/TTL => ${APPMAPSTATCALLEV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/ApplicationMapStatisticsSelf_Ver2/s/TTL => .[[:digit:]]*/TTL => ${APPMAPSTATSELFV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
sed -i "/HostApplicationMap_Ver2/s/TTL => .[[:digit:]]*/TTL => ${HOSTAPPMAPV2_TTL:-5184000}/g" ${BASE_DIR}/hbase-update-ttl.hbase
|
||||||
|
|
||||||
|
exec "$@"
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
${HBASE_HOME}/bin/start-hbase.sh
|
||||||
|
|
||||||
|
/usr/local/bin/configure-hbase.sh
|
||||||
|
/usr/local/bin/check-table.sh
|
|
@ -0,0 +1,34 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-hbase:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_HBASE_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-hbase:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- /home/pinpoint/hbase
|
||||||
|
- /home/pinpoint/zookeeper
|
||||||
|
expose:
|
||||||
|
# # zookeeper
|
||||||
|
# - "2181"
|
||||||
|
# HBase Master API port
|
||||||
|
- "60000"
|
||||||
|
# HBase Master Web UI
|
||||||
|
- "16010"
|
||||||
|
# Regionserver API port
|
||||||
|
- "60020"
|
||||||
|
# HBase Regionserver web UI
|
||||||
|
- "16030"
|
||||||
|
ports:
|
||||||
|
- "${EXTERNAL_HBASE_PORT:-2181}:2181"
|
||||||
|
- "60000:60000"
|
||||||
|
- "16010:16010"
|
||||||
|
- "60020:60020"
|
||||||
|
- "16030:16030"
|
||||||
|
restart: always
|
|
@ -0,0 +1,138 @@
|
||||||
|
|
||||||
|
#
|
||||||
|
#/**
|
||||||
|
# * Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
# * or more contributor license agreements. See the NOTICE file
|
||||||
|
# * distributed with this work for additional information
|
||||||
|
# * regarding copyright ownership. The ASF licenses this file
|
||||||
|
# * to you 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.
|
||||||
|
# */
|
||||||
|
|
||||||
|
# Set environment variables here.
|
||||||
|
|
||||||
|
# This script sets variables multiple times over the course of starting an hbase process,
|
||||||
|
# so try to keep things idempotent unless you want to take an even deeper look
|
||||||
|
# into the startup scripts (bin/hbase, etc.)
|
||||||
|
|
||||||
|
# The java implementation to use. Java 1.7+ required.
|
||||||
|
# export JAVA_HOME=/usr/java/jdk1.6.0/
|
||||||
|
|
||||||
|
# Extra Java CLASSPATH elements. Optional.
|
||||||
|
# export HBASE_CLASSPATH=
|
||||||
|
|
||||||
|
# The maximum amount of heap to use. Default is left to JVM default.
|
||||||
|
# export HBASE_HEAPSIZE=1G
|
||||||
|
|
||||||
|
# Uncomment below if you intend to use off heap cache. For example, to allocate 8G of
|
||||||
|
# offheap, set the value to "8G".
|
||||||
|
# export HBASE_OFFHEAPSIZE=1G
|
||||||
|
|
||||||
|
# Extra Java runtime options.
|
||||||
|
# Below are what we set by default. May only work with SUN JVM.
|
||||||
|
# For more on why as well as other possible settings,
|
||||||
|
# see http://wiki.apache.org/hadoop/PerformanceTuning
|
||||||
|
export HBASE_OPTS="-XX:+UseConcMarkSweepGC"
|
||||||
|
|
||||||
|
# Configure PermSize. Only needed in JDK7. You can safely remove it for JDK8+
|
||||||
|
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
|
||||||
|
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -XX:PermSize=128m -XX:MaxPermSize=128m"
|
||||||
|
|
||||||
|
# Uncomment one of the below three options to enable java garbage collection logging for the server-side processes.
|
||||||
|
|
||||||
|
# This enables basic gc logging to the .out file.
|
||||||
|
# export SERVER_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps"
|
||||||
|
|
||||||
|
# This enables basic gc logging to its own file.
|
||||||
|
# If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
|
||||||
|
# export SERVER_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH>"
|
||||||
|
|
||||||
|
# This enables basic GC logging to its own file with automatic log rolling. Only applies to jdk 1.6.0_34+ and 1.7.0_2+.
|
||||||
|
# If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
|
||||||
|
# export SERVER_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=512M"
|
||||||
|
|
||||||
|
# Uncomment one of the below three options to enable java garbage collection logging for the client processes.
|
||||||
|
|
||||||
|
# This enables basic gc logging to the .out file.
|
||||||
|
# export CLIENT_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps"
|
||||||
|
|
||||||
|
# This enables basic gc logging to its own file.
|
||||||
|
# If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
|
||||||
|
# export CLIENT_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH>"
|
||||||
|
|
||||||
|
# This enables basic GC logging to its own file with automatic log rolling. Only applies to jdk 1.6.0_34+ and 1.7.0_2+.
|
||||||
|
# If FILE-PATH is not replaced, the log file(.gc) would still be generated in the HBASE_LOG_DIR .
|
||||||
|
# export CLIENT_GC_OPTS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -Xloggc:<FILE-PATH> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=1 -XX:GCLogFileSize=512M"
|
||||||
|
|
||||||
|
# See the package documentation for org.apache.hadoop.hbase.io.hfile for other configurations
|
||||||
|
# needed setting up off-heap block caching.
|
||||||
|
|
||||||
|
# Uncomment and adjust to enable JMX exporting
|
||||||
|
# See jmxremote.password and jmxremote.access in $JRE_HOME/lib/management to configure remote password access.
|
||||||
|
# More details at: http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html
|
||||||
|
# NOTE: HBase provides an alternative JMX implementation to fix the random ports issue, please see JMX
|
||||||
|
# section in HBase Reference Guide for instructions.
|
||||||
|
|
||||||
|
# export HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
|
||||||
|
# export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10101"
|
||||||
|
# export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10102"
|
||||||
|
# export HBASE_THRIFT_OPTS="$HBASE_THRIFT_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10103"
|
||||||
|
# export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10104"
|
||||||
|
# export HBASE_REST_OPTS="$HBASE_REST_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10105"
|
||||||
|
|
||||||
|
# File naming hosts on which HRegionServers will run. $HBASE_HOME/conf/regionservers by default.
|
||||||
|
# export HBASE_REGIONSERVERS=${HBASE_HOME}/conf/regionservers
|
||||||
|
|
||||||
|
# Uncomment and adjust to keep all the Region Server pages mapped to be memory resident
|
||||||
|
#HBASE_REGIONSERVER_MLOCK=true
|
||||||
|
#HBASE_REGIONSERVER_UID="hbase"
|
||||||
|
|
||||||
|
# File naming hosts on which backup HMaster will run. $HBASE_HOME/conf/backup-masters by default.
|
||||||
|
# export HBASE_BACKUP_MASTERS=${HBASE_HOME}/conf/backup-masters
|
||||||
|
|
||||||
|
# Extra ssh options. Empty by default.
|
||||||
|
# export HBASE_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HBASE_CONF_DIR"
|
||||||
|
|
||||||
|
# Where log files are stored. $HBASE_HOME/logs by default.
|
||||||
|
# export HBASE_LOG_DIR=${HBASE_HOME}/logs
|
||||||
|
|
||||||
|
# Enable remote JDWP debugging of major HBase processes. Meant for Core Developers
|
||||||
|
# export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8070"
|
||||||
|
# export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8071"
|
||||||
|
# export HBASE_THRIFT_OPTS="$HBASE_THRIFT_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8072"
|
||||||
|
# export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_OPTS -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8073"
|
||||||
|
|
||||||
|
# A string representing this instance of hbase. $USER by default.
|
||||||
|
# export HBASE_IDENT_STRING=$USER
|
||||||
|
|
||||||
|
# The scheduling priority for daemon processes. See 'man nice'.
|
||||||
|
# export HBASE_NICENESS=10
|
||||||
|
|
||||||
|
# The directory where pid files are stored. /tmp by default.
|
||||||
|
# export HBASE_PID_DIR=/var/hadoop/pids
|
||||||
|
|
||||||
|
# Seconds to sleep between slave commands. Unset by default. This
|
||||||
|
# can be useful in large clusters, where, e.g., slave rsyncs can
|
||||||
|
# otherwise arrive faster than the master can service them.
|
||||||
|
# export HBASE_SLAVE_SLEEP=0.1
|
||||||
|
|
||||||
|
# Tell HBase whether it should manage it's own instance of Zookeeper or not.
|
||||||
|
export HBASE_MANAGES_ZK=false
|
||||||
|
|
||||||
|
# The default log rolling policy is RFA, where the log file is rolled as per the size defined for the
|
||||||
|
# RFA appender. Please refer to the log4j.properties file to see more details on this appender.
|
||||||
|
# In case one needs to do log rolling on a date change, one should set the environment property
|
||||||
|
# HBASE_ROOT_LOGGER to "<DESIRED_LOG LEVEL>,DRFA".
|
||||||
|
# For example:
|
||||||
|
# HBASE_ROOT_LOGGER=INFO,DRFA
|
||||||
|
# The reason for changing default to RFA is to avoid the boundary case of filling out disk space as
|
||||||
|
# DRFA doesn't put any cap on the log size. Please refer to HBase-5655 for more context.
|
|
@ -0,0 +1,30 @@
|
||||||
|
<configuration>
|
||||||
|
<property>
|
||||||
|
<name>hbase.rootdir</name>
|
||||||
|
<value>file:///home/pinpoint/hbase</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.cluster.distributed</name>
|
||||||
|
<value>true</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>zookeeper.znode.parent</name>
|
||||||
|
<value>/hbase</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.zookeeper.quorum</name>
|
||||||
|
<value>zoo1,zoo2,zoo3</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.zookeeper.property.clientPort</name>
|
||||||
|
<value>2181</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.master.port</name>
|
||||||
|
<value>60000</value>
|
||||||
|
</property>
|
||||||
|
<property>
|
||||||
|
<name>hbase.regionserver.port</name>
|
||||||
|
<value>60020</value>
|
||||||
|
</property>
|
||||||
|
</configuration>
|
|
@ -0,0 +1,7 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
|
||||||
|
### Pinpoint-mysql
|
||||||
|
MYSQL_ROOT_PASSWORD=root123
|
||||||
|
MYSQL_USER=admin
|
||||||
|
MYSQL_PASSWORD=admin
|
||||||
|
MYSQL_DATABASE=pinpoint
|
|
@ -0,0 +1,8 @@
|
||||||
|
FROM mysql:8.0
|
||||||
|
|
||||||
|
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 \
|
||||||
|
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/CreateTableStatement-mysql.sql \
|
||||||
|
&& sed -i '/^--/d' /docker-entrypoint-initdb.d/SpringBatchJobRepositorySchema-mysql.sql
|
|
@ -0,0 +1,62 @@
|
||||||
|
|
||||||
|
## Pinpoint Mysql
|
||||||
|
|
||||||
|
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
|
||||||
|
- 2.4.1
|
||||||
|
- 2.4.0
|
||||||
|
- 2.3.3
|
||||||
|
- 2.3.2
|
||||||
|
- 2.3.1
|
||||||
|
- 2.3.0
|
||||||
|
- 2.2.2
|
||||||
|
- 2.2.1
|
||||||
|
- 2.2.0
|
||||||
|
- 2.1.2
|
||||||
|
- 2.1.0
|
||||||
|
- 2.0.4
|
||||||
|
- 2.0.3
|
||||||
|
- 2.0.2
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
|
- 1.8.3
|
||||||
|
- 1.8.2
|
||||||
|
- 1.8.1
|
||||||
|
- 1.8.0
|
||||||
|
- 1.7.3
|
||||||
|
- 1.7.2
|
||||||
|
|
||||||
|
Please see [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
|
@ -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
|
|
@ -0,0 +1,27 @@
|
||||||
|
PINPOINT_VERSION=2.5.3
|
||||||
|
SPRING_PROFILES=release
|
||||||
|
|
||||||
|
### Pinpoint-Web
|
||||||
|
|
||||||
|
PINPOINT_WEB_NAME=pinpoint-web
|
||||||
|
|
||||||
|
WEB_SERVER_PORT=8080
|
||||||
|
#zookeeper information required
|
||||||
|
PINPOINT_ZOOKEEPER_ADDRESS=
|
||||||
|
|
||||||
|
WEB_LOGGING_LEVEL_ROOT=INFO
|
||||||
|
|
||||||
|
CLUSTER_ENABLE=true
|
||||||
|
|
||||||
|
ADMIN_PASSWORD=admin
|
||||||
|
|
||||||
|
#analytics
|
||||||
|
CONFIG_SENDUSAGE=true
|
||||||
|
|
||||||
|
CONFIG_SHOW_APPLICATIONSTAT=true
|
||||||
|
|
||||||
|
#mysql information required if used
|
||||||
|
JDBC_DRIVERCLASSNAME=com.mysql.jdbc.Driver
|
||||||
|
JDBC_URL=jdbc:mysql://pinpoint-mysql:3306/pinpoint?characterEncoding=UTF-8
|
||||||
|
JDBC_USERNAME=admin
|
||||||
|
JDBC_PASSWORD=admin
|
|
@ -0,0 +1,18 @@
|
||||||
|
FROM openjdk:11.0.16-jre-slim-buster
|
||||||
|
|
||||||
|
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 \
|
||||||
|
&& mkdir -p /pinpoint/scripts
|
||||||
|
|
||||||
|
COPY /build/config/pinpoint-web.properties /pinpoint/config/
|
||||||
|
COPY /build/scripts/start-web.sh /pinpoint/scripts/
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
||||||
|
&& chmod a+x /pinpoint/scripts/start-web.sh \
|
||||||
|
&& chmod a+x /pinpoint/config/pinpoint-web.properties \
|
||||||
|
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-web-boot.jar
|
||||||
|
|
||||||
|
#entry point to start-web.sh for future use.
|
||||||
|
ENTRYPOINT ["sh", "/pinpoint/scripts/start-web.sh"]
|
|
@ -0,0 +1,18 @@
|
||||||
|
FROM openjdk:11.0.16-jre-slim-buster
|
||||||
|
|
||||||
|
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 \
|
||||||
|
&& mkdir -p /pinpoint/scripts
|
||||||
|
|
||||||
|
COPY /build/config/pinpoint-web.properties /pinpoint/config/
|
||||||
|
COPY /build/scripts/start-web.sh /pinpoint/scripts/
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
||||||
|
&& chmod a+x /pinpoint/scripts/start-web.sh \
|
||||||
|
&& chmod a+x /pinpoint/config/pinpoint-web.properties \
|
||||||
|
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-web-boot.jar
|
||||||
|
|
||||||
|
#entry point to start-web.sh for future use.
|
||||||
|
ENTRYPOINT ["sh", "/pinpoint/scripts/start-web.sh"]
|
|
@ -0,0 +1,65 @@
|
||||||
|
|
||||||
|
## Pinpoint Web
|
||||||
|
|
||||||
|
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
|
||||||
|
- 2.4.0
|
||||||
|
- 2.3.3
|
||||||
|
- 2.3.2
|
||||||
|
- 2.3.1
|
||||||
|
- 2.3.0
|
||||||
|
- 2.2.2
|
||||||
|
- 2.2.1
|
||||||
|
- 2.2.0
|
||||||
|
- 2.1.2
|
||||||
|
- 2.1.0
|
||||||
|
- 2.0.4
|
||||||
|
- 2.0.3
|
||||||
|
- 2.0.2
|
||||||
|
- 2.0.1
|
||||||
|
- 1.8.5
|
||||||
|
- 1.8.4
|
||||||
|
- 1.8.3
|
||||||
|
- 1.8.2
|
||||||
|
- 1.8.1
|
||||||
|
- 1.8.0
|
||||||
|
- 1.7.3
|
||||||
|
- 1.7.2
|
||||||
|
|
||||||
|
Please see the [Pinpoint-Docker GitHub repository](https://github.com/pinpoint-apm/pinpoint-docker) for further information on how to run, configure and build this image.
|
||||||
|
|
||||||
|
## Any Issues or Suggestions?
|
||||||
|
|
||||||
|
Feel free to share any problems and suggestions via [Pinpoint GitHub Issue page](https://github.com/pinpoint-apm/pinpoint-docker/issues).
|
||||||
|
Contributions on the pinpoint-docker image is also always welcome.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Pinpoint is licensed under the Apache License, Version 2.0.
|
||||||
|
See [LICENSE](https://github.com/pinpoint-apm/pinpoint/blob/master/LICENSE) for full license text.
|
||||||
|
|
||||||
|
```
|
||||||
|
Copyright 2018 NAVER Corp.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
```
|
|
@ -0,0 +1,8 @@
|
||||||
|
##########
|
||||||
|
# another way of setting properties.
|
||||||
|
# applied priority '.ENV' -> 'pinpoint-web.properties'
|
||||||
|
# property should be commented in docker-compose file to use
|
||||||
|
# ex) PINPOINT_ZOOKEEPER_ADDRESS should be commented in docker-compose to use pinpoint.zookeeper.address below
|
||||||
|
##########
|
||||||
|
|
||||||
|
pinpoint.zookeeper.address=
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
exec java -jar /pinpoint/pinpoint-web-boot.jar --spring.config.additional-location=/pinpoint/config/pinpoint-web.properties
|
|
@ -0,0 +1,33 @@
|
||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
services:
|
||||||
|
pinpoint-web:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
- PINPOINT_VERSION=${PINPOINT_VERSION}
|
||||||
|
|
||||||
|
container_name: "${PINPOINT_WEB_NAME}"
|
||||||
|
image: "pinpointdocker/pinpoint-web:${PINPOINT_VERSION}"
|
||||||
|
|
||||||
|
restart: always
|
||||||
|
expose:
|
||||||
|
- "${WEB_SERVER_PORT:-8080}"
|
||||||
|
- "9997"
|
||||||
|
ports:
|
||||||
|
- "9997:9997"
|
||||||
|
- "${WEB_SERVER_PORT:-8080}:8080"
|
||||||
|
environment:
|
||||||
|
- WEB_SERVER_PORT=${WEB_SERVER_PORT}
|
||||||
|
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES}
|
||||||
|
- PINPOINT_ZOOKEEPER_ADDRESS=${PINPOINT_ZOOKEEPER_ADDRESS}
|
||||||
|
- CLUSTER_ENABLE=${CLUSTER_ENABLE}
|
||||||
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||||
|
- CONFIG_SENDUSAGE=${CONFIG_SENDUSAGE}
|
||||||
|
- LOGGING_LEVEL_ROOT=${WEB_LOGGING_LEVEL_ROOT}
|
||||||
|
- CONFIG_SHOW_APPLICATIONSTAT=${CONFIG_SHOW_APPLICATIONSTAT}
|
||||||
|
- JDBC_DRIVERCLASSNAME=${JDBC_DRIVERCLASSNAME}
|
||||||
|
- JDBC_URL=${JDBC_URL}
|
||||||
|
- JDBC_USERNAME=${JDBC_USERNAME}
|
||||||
|
- JDBC_PASSWORD=${JDBC_PASSWORD}
|
|
@ -0,0 +1,51 @@
|
||||||
|
version: "3.6"
|
||||||
|
services:
|
||||||
|
#zookeepers
|
||||||
|
zoo1:
|
||||||
|
image: zookeeper:3.4
|
||||||
|
restart: always
|
||||||
|
hostname: zoo1
|
||||||
|
environment:
|
||||||
|
ZOO_MY_ID: 1
|
||||||
|
ZOO_SERVERS: server.1=0.0.0.0:2888:3888 server.2=zoo2:2888:3888 server.3=zoo3:2888:3888
|
||||||
|
expose:
|
||||||
|
- "2181"
|
||||||
|
- "2888"
|
||||||
|
- "3888"
|
||||||
|
ports:
|
||||||
|
- "2181"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
zoo2:
|
||||||
|
image: zookeeper:3.4
|
||||||
|
restart: always
|
||||||
|
hostname: zoo2
|
||||||
|
environment:
|
||||||
|
ZOO_MY_ID: 2
|
||||||
|
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=0.0.0.0:2888:3888 server.3=zoo3:2888:3888
|
||||||
|
expose:
|
||||||
|
- "2181"
|
||||||
|
- "2888"
|
||||||
|
- "3888"
|
||||||
|
ports:
|
||||||
|
- "2181"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
zoo3:
|
||||||
|
image: zookeeper:3.4
|
||||||
|
restart: always
|
||||||
|
hostname: zoo3
|
||||||
|
environment:
|
||||||
|
ZOO_MY_ID: 3
|
||||||
|
ZOO_SERVERS: server.1=zoo1:2888:3888 server.2=zoo2:2888:3888 server.3=0.0.0.0:2888:3888
|
||||||
|
expose:
|
||||||
|
- "2181"
|
||||||
|
- "2888"
|
||||||
|
- "3888"
|
||||||
|
ports:
|
||||||
|
- "2181"
|
||||||
|
networks:
|
||||||
|
- pinpoint
|
||||||
|
networks:
|
||||||
|
pinpoint:
|
||||||
|
driver: bridge
|
Loading…
Reference in New Issue