Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Descripton

After ticket 

Jira Legacy
serverJIRA - NovaTec GmbH
serverId182cead0-3112-3f31-b55d-460913cb8020
keyINSPECTIT-890
 is integrated there will be possibility It is possible to monitor the CMR with our own inspectIT Agent.

For this purpose the CMR with Agent run configuration will be available and should be used when self-monitoring is needed.

The general idea is that CMR that is being monitored sends data to it self. Basically only one CMR needs to be started with the Agent and that's it. Although the Agent will fail to connect initially to the CMR, after the CMR has been started the Agent will be able to connect. 

Process

Simply start the CMR with Agent run configuration. Make sure that the agent is built and available.

Info
titleExpect exceptions

It might be possible that the Agent reports some kind of exceptions while running on the CMR, but these do not influence the monitoring. 

 another CMR. The first one should be an installed Version (at least the two inspectIT instances are not allowed to have the same workspace) and the second can be started from Eclipse. Running both CMRs from the same Eclipse will not work.

Process

  1. Install inspectIT on you computer, i.e. the most recent version from Github. Lets call this inspectIT "Monitor inspectIT".
  2. Start the Monitor inspectIT CMR without any specific start parameter.
  3. Import the Configuration which can be found in the inspectIT code under "inspectIT\resources\monitoring\CMR-Monitoring-Import-Data.xml". It is called: CMR [self monitoring].
  4. Ensure that the Agent Mapping is setup corretly that new Agents will use this Configuration under Agent Mapping Settings.
  5. Switch to the inspectIT Version In Eclipse which should be monitored. Lets call this inspectIT "ToTest inspectIT".
  6. Change the file inspectit.server\src\main\external-resources\config\default.xml: Change jetty.port to i.e. 8183 and the cmr.port to i.e. 9071.
  7. Start the CMR with the launch Script "CMR with Agent". Change the -javaagent path to the path of the Agent of the "Monitor inspectIT".
  8. When the second CMR is started you can monitor this one by putting load on it with another application.
  9. Ensure that the application that is monitored with the "ToTest inspectIT" uses the agent build by this inspectIT version and not from the "Monitor inspectIT" (In case they have not the same version). Further the monitored agent must add the cmr.port of the "ToTest CMR", i.e. -Dinspectit.repository=localhost:9071

Configuration

Currently this configuration is defined:

...