Running the 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 Guide .
- Procedure
- Navigate to the
flogomonfolder. - Build the Docker image by running the
Dockerfilecommand orDockerfile_alpinecommand as follows:docker build -t flogomon -f Dockerfile .
docker build -t flogomon -f Dockerfile_alpine .
- To get a list 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,
-pspecifies the port on which the Flogo Enterprise Monitoring app must be started. The default port is7337and it can be configured using theFLOGO_MON_SERVER_PORTproperty.Note: Use-e FLOGO_FLOW_SM_ENDPOINT=http://<host>:<port>only if you want to use 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,
-pspecifies the port on which the Flogo Enterprise Monitoring app must be started. The default port is7337and it can be configured using theFLOGO_MON_SERVER_PORTproperty.Note: Use-e FLOGO_FLOW_SM_ENDPOINT=http://<host>:<port>only if you want to use 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.