Descripton
After ticket
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.
Expect 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.
Examples:
Mrz 07, 2014 2:23:29 PM info.novatec.inspectit.agent.sensor.method.invocationsequence.InvocationSequenceHook addObjectStorage
SEVERE: thread data NULL!!!!
Configuration
Currently this configuration is defined:
## repository <IP> <port> <Agent Name> ############################################# repository localhost 9070 Development/CMR ## method-sensor-type <name> <fully-qualified-name> <priority> [<additional options>] ##################################################################################### # method-sensor-type average-timer info.novatec.inspectit.agent.sensor.method.averagetimer.AverageTimerSensor HIGH stringLength=100 method-sensor-type timer info.novatec.inspectit.agent.sensor.method.timer.TimerSensor MAX stringLength=100 method-sensor-type isequence info.novatec.inspectit.agent.sensor.method.invocationsequence.InvocationSequenceSensor INVOC stringLength=100 method-sensor-type jdbc-connection info.novatec.inspectit.agent.sensor.method.jdbc.ConnectionSensor MIN method-sensor-type jdbc-prepared-statement info.novatec.inspectit.agent.sensor.method.jdbc.PreparedStatementSensor MIN method-sensor-type jdbc-prepared-statement-parameter info.novatec.inspectit.agent.sensor.method.jdbc.PreparedStatementParameterSensor MIN method-sensor-type jdbc-statement info.novatec.inspectit.agent.sensor.method.jdbc.StatementSensor MIN ## exception-sensor-type <fully-qualified-name> [<additional options>] ###################################################################### exception-sensor-type info.novatec.inspectit.agent.sensor.exception.ExceptionSensor mode=simple ## platform-sensor-type <fully-qualified-name> [<additional options>] ##################################################################### platform-sensor-type info.novatec.inspectit.agent.sensor.platform.ClassLoadingInformation platform-sensor-type info.novatec.inspectit.agent.sensor.platform.CompilationInformation platform-sensor-type info.novatec.inspectit.agent.sensor.platform.MemoryInformation platform-sensor-type info.novatec.inspectit.agent.sensor.platform.CpuInformation platform-sensor-type info.novatec.inspectit.agent.sensor.platform.RuntimeInformation platform-sensor-type info.novatec.inspectit.agent.sensor.platform.SystemInformation platform-sensor-type info.novatec.inspectit.agent.sensor.platform.ThreadInformation ## send-strategy <fully-qualified-name> ####################################### send-strategy info.novatec.inspectit.agent.sending.impl.TimeStrategy time=5000 # send-strategy info.novatec.inspectit.agent.sending.impl.ListSizeStrategy size=10 ## buffer-strategy <fully-qualified-name> ######################################### buffer-strategy info.novatec.inspectit.agent.buffer.impl.SimpleBufferStrategy #buffer-strategy info.novatec.inspectit.agent.buffer.impl.SizeBufferStrategy size=12 ## Ignore classes settings ######################################### $include common/exclude-classes.cfg ## SQL tracing ############## $include common/sql.cfg ## Uncomment configuration file under to enable parameter binding for SQL queries. This feature allows to have ## prepared Statements filled with the concrete parameter value that it was executed with, instead of just "?" values. ## Bear in mind that activating this feature will affect performance in a negative way as more methods need to be instrumented. $include common/sql-parameters.cfg # All services are proxies sensor isequence info.novatec.inspectit.cmr.service* * modifiers=pub interface=true sensor timer info.novatec.inspectit.cmr.service* * modifiers=pub interface=true # All DAOs sensor timer info.novatec.inspectit.cmr.dao.* * modifiers=pub interface=true # Buffer sensor timer info.novatec.inspectit.cmr.cache.IBuffer put interface=true sensor timer info.novatec.inspectit.cmr.cache.IBuffer evict interface=true sensor timer info.novatec.inspectit.cmr.cache.IBuffer analyzeNext interface=true sensor timer info.novatec.inspectit.cmr.cache.IBuffer indexNext interface=true # Storage sensor timer info.novatec.inspectit.storage.StorageManager * modifiers=pub superclass=true sensor timer info.novatec.inspectit.storage.StorageWriter * modifiers=pub superclass=true sensor timer info.novatec.inspectit.cmr.storage.CmrStorageRecorder stop* sensor timer info.novatec.inspectit.cmr.storage.CmrStorageRecorder start* sensor timer info.novatec.inspectit.cmr.storage.CmrStorageRecorder record # Indexing sensor timer info.novatec.inspectit.cmr.indexing.impl.RootBranchFactory$RootBranch * modifiers=pub # Aggregation sensor timer info.novatec.inspectit.indexing.aggregation.impl.AggregationPerformer * modifiers=pub # NIO sensor timer info.novatec.inspectit.storage.nio.write.WritingChannelManager write* sensor timer info.novatec.inspectit.storage.nio.read.ReadingChannelManager read* # File upload servlet sensor timer info.novatec.inspectit.cmr.jetty.FileUploadServlet doGet # All our exceptions exception-sensor info.novatec.inspectit*