Binding TIBCO BusinessWorks Container Edition to Monitoring Application on Docker
TIBCO BusinessWorks Container Edition application can be bound to the monitoring application by using the environment variable
BW_APP_MONITORING_CONFIG
.
Before you beginEnsure that the monitoring application is running on the Docker container.
- Procedure
- Create a Dockerfile to deploy
TIBCO BusinessWorks Container Edition an application on Docker. For more information about creating the Dockerfile, see "Application Development for Docker" in the TIBCO BusinessWorks Container Edition
Application Development.
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 Dockerfile are stored.
- Run the following command to build the application image:
docker build -t <application name> .
- In the Docker run command, set the environment variable BW_APP_MONITORING_CONFIG to enable monitoring.
- Run the command in the Docker terminal using Docker machine IP or using link.
- Using the Application Monitoring URL
docker run -d -p 18050:8080 -e BW_APP_MONITORING_CONFIG='{"url":"http://<docker-host-IP>:<port>"}'<appname>:<tag>
Note:- For Docker on the Windows platform, use the BW_APP_MONITORING_CONFIG environment variable changes to:
'{\"url\":\"http://<docker-host-IP>:8080\"}'
-
To configure batch size and publish timer, you can pass additional parameters:
-Dbw.monitor.batchsize=10 -Dbw.monitor.publishtimer=15000
Batch size: This property specifies the batch size for the data. Process monitoring data is published in batches.Publish timer: This property specifies the time interval for publishing Process Monitoring data.
- To register with Monitoring UI applications running on the HTTPS Server, run the below command:
docker run -d -p 18050:8080 -e BW_APP_MONITORING_CONFIG='{"url":"https://<docker-host-IP>:<https_port>"}'<appname>:<tag>
- For Docker on the Windows platform, use the BW_APP_MONITORING_CONFIG environment variable changes to:
- Using Link on the Same Docker Host
docker run --link=<name or id>:alias -p 18080:8080 -e BW_APP_MONITORING_CONFIG='{"url":"http://<alias>:8080"}' <applicationName>
Note: The use of links is deprecated by Docker.Note: For Docker on the Windows platform, the BW_APP_MONITORING_CONFIG environment variable changes to:'{\"url\":\"http://<alias>:8080\"}'
- Using the Application Monitoring URL