mirror of
https://github.com/wahyd4/docker-pinpoint.git
synced 2026-08-09 04:46:24 +10:00
61 lines
1.8 KiB
Markdown
61 lines
1.8 KiB
Markdown
# docker-pinpoint
|
|
|
|
This repo contains the docker images for [Pinpoint](https://github.com/naver/pinpoint), or you can just use the docker compose file run pinpoint in seconds.
|
|
|
|
### To build the images
|
|
* Go to a folder
|
|
* `docker build -t repo-name:latest .` to build the image
|
|
|
|
### To run all the containers
|
|
|
|
```
|
|
docker-compose up -d
|
|
```
|
|
|
|
Open your browser and then go to <http://localhost:28080>
|
|
|
|
|
|
### Add your own Java based application to be monitored.
|
|
|
|
* Modify the `pinpoint.config` if you need.
|
|
|
|
```
|
|
###########################################################
|
|
# Collector server #
|
|
###########################################################
|
|
profiler.collector.ip=127.0.0.1
|
|
|
|
# placeHolder support "${key}"
|
|
profiler.collector.span.ip=${profiler.collector.ip}
|
|
profiler.collector.span.port=9996
|
|
|
|
# placeHolder support "${key}"
|
|
profiler.collector.stat.ip=${profiler.collector.ip}
|
|
profiler.collector.stat.port=9995
|
|
|
|
# placeHolder support "${key}"
|
|
profiler.collector.tcp.ip=${profiler.collector.ip}
|
|
profiler.collector.tcp.port=9994
|
|
|
|
```
|
|
|
|
|
|
* The following script is a example for a spring boot application.
|
|
|
|
```shell
|
|
java -javaagent:/some-absolute-path/pinpoint-agent-1.6.2/pinpoint-bootstrap-1.6.2.jar -Dpinpoint.agentId=some-union-id -Dpinpoint.applicationName=some-name -jar build/libs/wise-log-1.0.0-SNAPSHOT.jar
|
|
|
|
```
|
|
|
|
### More Examples
|
|
|
|
[See more examples of monitoring](examples) using docker-compose, image docker, monitoring tests with selenium, ...
|
|
|
|
You can find more samples at: <https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples>
|
|
|
|
If you plan to use external volumes for hbase you should fill hbase first.
|
|
Please run this script inside hbase container
|
|
```
|
|
${HBASE_HOME}/bin/hbase shell /opt/hbase/hbase-create.hbase; ${HBASE_HOME}/bin/stop-hbase.sh
|
|
```
|