Running the TIBCO Flogo Enterprise Monitoring App On Docker
You can run the
Flogo Enterprise Monitoring app as a standalone app or in a container such as Docker or Kubernetes. This section explains how to run the
Flogo Enterprise Monitoring app on Docker.
Before you beginThe
Flogo Enterprise Monitoring app is installed as described in the "Installing TIBCO Flogo® Enterprise Monitoring App" section of the
TIBCO Flogo® Enterprise Installation.
- Procedure
- Navigate to the
flogomon
folder. - Build the Docker image by running the
Dockerfile
command orDockerfile_alpine
command as follows:docker build -t flogomon -f Dockerfile .
docker build -t flogomon -f Dockerfile_alpine .
- To get a list of the most recently created Docker images, run:
- Run the
Flogo Enterprise Monitoring app using the following commands. For a list of configuration properties that can be used while running these commands, refer to
Configuring the Flogo Enterprise Monitoring App.
With persistent volumes and API key:
docker run -e FLOGO_MON_DATA_DIR=<path where applist.json file must be stored> -e FLOGO_FLOW_SM_ENDPOINT=http://<host>:<port> -v <path to persistent volumes>:/opt/flogomon/data -e FLOGO_MON_API_KEY=<secret API key> -it -p 7337:7337 <name of Docker image of Flogo Enterprise Monitoring application>
Here,
-p
specifies the port on which the Flogo Enterprise Monitoring app must be started. The default port is7337
and it can be configured using theFLOGO_MON_SERVER_PORT
property.Note: Use-e FLOGO_FLOW_SM_ENDPOINT=http://<host>:<port>
only if you want to use TIBCO Flogo® Flow State Manager.For example:
docker run -e FLOGO_MON_DATA_DIR=/opt/flogomon/data -e FLOGO_FLOW_SM_ENDPOINT=http://localhost:9091 -v /home/testuser/flogo:/opt/flogomon/data -it -p 7337:7337 flogomon:latest
docker run -e FLOGO_MON_DATA_DIR=/opt/flogomon/data -e FLOGO_FLOW_SM_ENDPOINT=http://192.168.4.12:9091 -v /home/testuser/flogo:/opt/flogomon/data -it -p 7337:7337 flogomon:latest
Without persistent volumes and API key:docker run -e FLOGO_FLOW_SM_ENDPOINT=http://<host>:<port> -it -p 7337:7337 <name of Docker image of Flogo Enterprise Monitoring application>
Here,
-p
specifies the port on which the Flogo Enterprise Monitoring app must be started. The default port is7337
and it can be configured using theFLOGO_MON_SERVER_PORT
property.Note: Use-e FLOGO_FLOW_SM_ENDPOINT=http://<host>:<port>
only if you want to use the TIBCO Flogo® Flow State Manager.For example:
docker run -e FLOGO_FLOW_SM_ENDPOINT=http://localhost:9091 -it -p 7337:7337 flogomon:latest
docker run -e FLOGO_FLOW_SM_ENDPOINT=http://192.168.4.12:9091 -it -p 7337:7337 flogomon:latest
docker images
ResultThe web server for the
Flogo Enterprise Monitoring app is started.
What to do next
Register the app to be monitored with the
Flogo Enterprise Monitoring app. See
Registering an App with the Flogo Enterprise Monitoring App.