Sample configuration file
This sample is also provided by the agent release
Please understand this configuration file only as one possible sample
## repository <IP> <port> <Agent Name> ############################################# repository localhost 1099 inspectIT ## method-sensor-type <name> <fully-qualified-name> <priority> [<additional options>] ##################################################################################### # method-sensor-type average-timer info.novatec.inspectit.agent.sensor.method.averagetimer.AverageTimerSensor HIGH method-sensor-type timer info.novatec.inspectit.agent.sensor.method.timer.TimerSensor MAX method-sensor-type isequence info.novatec.inspectit.agent.sensor.method.invocationsequence.InvocationSequenceSensor INVOC 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 ## 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=3 ## SQL Tracing (generic) ######################## # SQL Connection sensor jdbc-connection java.sql.Connection prepareStatement(java.lang.String) interface=true sensor jdbc-connection java.sql.Connection prepareStatement(java.lang.String,int) interface=true sensor jdbc-connection java.sql.Connection prepareStatement(java.lang.String,int[]) interface=true sensor jdbc-connection java.sql.Connection prepareStatement(java.lang.String,int,int) interface=true sensor jdbc-connection java.sql.Connection prepareStatement(java.lang.String,int,int,int) interface=true sensor jdbc-connection java.sql.Connection prepareStatement(java.lang.String,String[]) interface=true sensor jdbc-connection java.sql.Connection prepareCall(java.lang.String) interface=true sensor jdbc-connection java.sql.Connection prepareCall(java.lang.String,int,int) interface=true sensor jdbc-connection java.sql.Connection prepareCall(java.lang.String,int,int,int) interface=true # WebLogic SQL Connection sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareStatement(java.lang.String) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareStatement(java.lang.String,int) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareStatement(java.lang.String,int[]) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareStatement(java.lang.String,int,int) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareStatement(java.lang.String,int,int,int) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareStatement(java.lang.String,String[]) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareCall(java.lang.String) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareCall(java.lang.String,int,int) interface=true sensor jdbc-connection weblogic.jdbc.wrapper.Connection prepareCall(java.lang.String,int,int,int) interface=true # SQL Prepared Statement sensor jdbc-prepared-statement java.sql.PreparedStatement <init> interface=true sensor jdbc-prepared-statement java.sql.PreparedStatement executeQuery() interface=true sensor jdbc-prepared-statement java.sql.PreparedStatement executeUpdate() interface=true sensor jdbc-prepared-statement java.sql.PreparedStatement execute() interface=true sensor jdbc-prepared-statement java.sql.Statement executeBatch() interface=true # PostgreSQL Prepared Statement sensor jdbc-prepared-statement org.postgresql.jdbc2.AbstractJdbc2Statement executeQuery() sensor jdbc-prepared-statement org.postgresql.jdbc2.AbstractJdbc2Statement executeUpdate() sensor jdbc-prepared-statement org.postgresql.jdbc2.AbstractJdbc2Statement execute() # SQL Prepared Statement Parameter Replacement #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setBigDecimal(int,java.math.BigDecimal) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setBoolean(int,boolean) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setByte(int,byte) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setDate(int,java.sql.Date) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setDouble(int,double) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setFloat(int,float) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setInt(int,int) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setLong(int,long) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setShort(int,short) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setString(int,java.lang.String) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setTime(int,java.sql.Time) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setTimestamp(int,java.sql.Timestamp) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setObject(int,java.lang.Object) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement setArray(int,java.sql.Array) interface=true #sensor jdbc-prepared-statement-parameter java.sql.PreparedStatement clearParameters() interface=true # SQL Statement sensor jdbc-statement java.sql.Statement execute(java.lang.String) interface=true sensor jdbc-statement java.sql.Statement execute(java.lang.String,int) interface=true sensor jdbc-statement java.sql.Statement execute(java.lang.String,int[]) interface=true sensor jdbc-statement java.sql.Statement execute(java.lang.String,java.lang.String[]) interface=true sensor jdbc-statement java.sql.Statement executeUpdate(java.lang.String)interface=true sensor jdbc-statement java.sql.Statement executeUpdate(java.lang.String,int) interface=true sensor jdbc-statement java.sql.Statement executeUpdate(java.lang.String,int[]) interface=true sensor jdbc-statement java.sql.Statement executeUpdate(java.lang.String,java.lang.String[]) interface=true sensor jdbc-statement java.sql.Statement executeQuery(java.lang.String) interface=true ## EXAMPLES ########### # sensor timer novatec.SubTest msg(java.lang.String) # sensor timer novatec.Sub* msg(int) # sensor timer novatec.SubTest msg(*String) # sensor timer novatec.Sub* m*(java.lang.String,*String) # sensor timer novatec.ITest * interface=true # sensor timer nova*.Te* m*(*String) superclass=true # sensor timer info.novatec.inspectitsamples.calculator.Calculator * # sensor timer info.novatec.inspectitsamples.calculator.Calculator substract(double,double) # sensor timer info.novatec.inspectitsamples.calculator.Calculator divide(double,double) # sensor timer info.novatec.inspectitsamples.calculator.Calculator multiply(double,double) ## The following aren't working properly (for java classes), just added to show the usage of the superclass/interface option # sensor timer java.lang.Object * superclass=true # sensor timer java.util.List size() interface=true ## For parameter catching: p=parameter of the method | f=field of the class/instance # sensor isequence info.novatec.inspectitsamples.calculator.Calculator actionPerformed p=0;Source; f=LastOperator;lastOperator f=LastOutput;jlbOutput.text ## For constructors: # sensor timer info.novatec.inspectitsamples.calculator.Calculator <init> ## Exception catching # exception-sensor info.novatec.exception.MyException # exception-sensor info.novatec.ex*.*Exception ## You can include additional sensor configuration files (e.g. for separation or easier (de-)activation) like this ## If no absolute path is specified, the folder containing this file will be taken as the root! # $include sensors.cfg # $include api1.cfg # $include api2.cfg # $include /my/path/to/the/configuration/ui-sensors.cfg ## Your Sensor Definitions ########################## # sensor <sensor-type-name> <class-to-monitor> <method-to-monitor> [<additional options>]