update pinpoint web point and update readme.

This commit is contained in:
2017-04-28 14:33:13 +08:00
parent 1e2dcdb079
commit ef4f58a5d0
2 changed files with 18 additions and 10 deletions
+17 -9
View File
@@ -1,20 +1,28 @@
# docker-pinpoint
Create docker machine
```
docker-machine create --driver virtualbox --virtualbox-disk-size "50000" --engine-storage-driver "overlay" --virtualbox-memory "4096" --virtualbox-cpu-count "8" docker-vm
```
This repo contains the docker images of Pinpoint, or you can just use the docker compose file run pinpoint in seconds.
Configure your shell
```
eval "$(docker-machine env docker-vm)"
```
### To build the images
* Go to a folder
* `docker build -t repo-name:latest .` to build the image
### To run all containers
To run all containers
```
docker-compose up -d
```
Open your browser and then go to <http://localhost:28080>
### Add your own Java based application to be monitored.
```shell
java -javaagent:/some-absolute-path/pinpoint-agent-1.6.1/pinpoint-bootstrap-1.6.1.jar -Dpinpoint.agentId=some-union-id -Dpinpoint.applicationName=some-name -jar build/libs/wise-log-1.0.0-SNAPSHOT.jar
```
If you plan to use external volumes for hbase you should fill hbase first.
Please run this script inside hbase container
```
+1 -1
View File
@@ -44,7 +44,7 @@ pinpoint-web:
expose:
- "8080"
ports:
- "3080:8080"
- "28080:8080"
environment:
HBASE_HOST: hbase
HBASE_PORT: 2181