Creating a Docker-compose.yml file
The
docker-compose.yml
file contains the configurations for the Hawk Microagent for TIBCO BusinessWorks Container Edition container. Append the following to the docker-compose.yml
in the samples folder of TIBCO OI Hawk RedTail located at OIHR_HOME/redtail/samples/docker/
. For more information, see
the TIBCO® Operational Intelligence Hawk® RedTail Installation, Configuration, and Administration Container Edition guide.
The following sample shows the configuration of Hawk Microagent for TIBCO BusinessWorks Container Edition container in the
docker-compose.yml
file:
bwcontainer: image: hkbwce:latest environment: ami_agent_url: <HawkAgent_Container_Name>:2571 tcp_self_url: bwcontainer:2655 BW_JAVA_OPTS: -Dbw.smartengine.appStatistics.enabled=true bw_hawk_hma_tcp_max_reconnect_attempts_during_connect: '20' bw_hawk_hma_tcp_max_reconnect_attempts_after_restart: '1000' microagent_suffix: samplehkbwceApp ports: - '2655:2655'
Note: Ensure that the
ami_agent_url
environment variable value set in
TIBCO BusinessWorks Container Edition is same as the
ami_tcp_session
environment variable value set in the Hawk agent container.
Viewing Container Logs
- Procedure
- To view logs of a particular container, run the following command:
docker logs <container_id>
Result You can access the microagent using
Hawk RedTail Console at
https://<Host_IP>:<webapp_port>/redtail
.