Monitoring a running application
Use the Health Center to connect to, and monitor, an application. For example, you can monitor Java™ or Node.js applications.
About this task
The monitoring agent collects data from a running application. You use the Health Center client to analyze and interpret this data. You can use the agent and client together in the following ways:
- Connect the client to the agent while the agent is running, to view the data as it is being collected.
- Configure the agent to save the data to a file, then use the client to view the data after collection finishes. This option is known as headless mode. This option applies to Java applications only. This option is not available for applications that are running in IBM® Bluemix®.
You can also use the Health Center API to retrieve data from the agent, instead of using the Health Center client.
You can choose the type of connection between the client and the agent, as follows:
- If you want to monitor a Java application, you can choose to connect by using either the JMX API or the MQTT telemetry protocol.
- For other application types, you must use MQTT.
- You can also monitor Bluemix applications that are running in the Liberty for Java or SDK for Node.js runtime environments.
If you choose Bluemix, the monitoring agent is already provided by Bluemix and cannot be configured. You can skip the following steps and instead go straight to Connecting an application to the Health Center client.
Procedure
Results
If you are using an MQTT broker and the broker stops, the agent will reconnect when you restart the broker, though some data will be lost
What to do next
To learn more about the data that the Health Center client displays, see Data available on connection to a running application.