Table of Contents
- DOCKER MONITORING (TIBCO BusinessWorks? Container Edition 2.3.2)
- Using Application Monitoring URL
- Using Link on Same Docker Host
- For example, on Windows:
Follow these steps to implement Application monitoring of TIBCO BusinessWorks? Container Edition application on Docker.
DOCKER MONITORING (TIBCO BusinessWorks? Container Edition 2.3.2)
-
Download the bwce_mon.zip TIBCO BusinessWorks Container Edition monitoring zip file, from http://edelivery.tibco.com.
-
Extract the zip file in the docker folder of your TIBCO BusinessWorks Container Edition
C:\BWCE2.3.2\bwce\2.3\docker\bwcemonitoring
-
Navigate to the bwce_mon directory and build the docker image by running the following command:
docker build -t bwce/monitoring:latest .
-
Ensure that MySQL or PostgreSQL is running and the user is created with all the privileges. You can use a standalone docker to run the monitoring applicaton by passing the two environment variables.
-
You must pass the two environment variables to start monitoring an application.
-
PERSISTENCE_TYPE - DB_URL
-
Run the following command.
For MySQL
docker run -p 8080:8080 -e PERSISTENCE_TYPE="mysql" -e DB_URL="mysql://<user name:password>@<machine:port/database> --name <containerName> <monitoringImageName:tag>
For PostGresSQL
docker run -p 8080:8080 -e PERSISTENCE_TYPE="postgres" -e DB_URL="postgresql://<user name:password>@<machine:port/database> --name <containerName> <monitoringImageName:tag>
For example:
docker run -p 8080:8080 -e persistence_TYPE="mysql" -e DB_URL="mysql://TIBCO:Tibco123!@localhost:3306/bwcemonitoring" --name bwce-monitoring bwce/monitoring:latest
-
-
After the monitoring container runs successfully, you can access the monitoring UI by using following URL in the the browser
-
Create a docker file to deploy application on docker.
FROM tibco/bwce:latest MAINTAINER Tibco ADD <application name>.ear / EXPOSE 8080
-
Run the Docker terminal and navigate to the directory where the EAR and Docker file are stored.
-
Run the following command to build the application image:
docker build -t <application name> .
ex. docker build ?t restapp:latest .
-
In docker run command, set an environment variable BW_APP_MONITORING_CONFIG to enable monitoring
Using Application Monitoring URL
docker run -d -p 18065:8080 -e BW_APP_MONITORING_CONFIG='{"url":"http://<docker-host-IP>:8080"}'<application name>
Note: For Docker on Windows platform use the BW_APP_MONITORING_CONFIG environment variable changes to:
'{\"url\":\"http://<docker-host-IP>:8080\"}'
Using Link on Same Docker Host
docker run --link=<name or id>:alias -p 18080:8080 -e BW_APP_MONITORING_CONFIG='{"url":"http://<alias>:8080"}' <applicationName>
Note: For Docker on Windows platform, the BW_APP_MONITORING_CONFIG environment variable changes to:
'{\"url\":\"http://<alias>:8080\"}'
For example, on Windows:
docker run -d -p 8083:8083 -e BW_APP_MONITORING_CONFIG={\"url\":\"http://172.17.0.2:8
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now