...
Warning |
---|
From inspectIT version 1.6.8 there is only a single realization of the timer sensor. |
Configuration
Configuration
...
basics
Using the UI configuration interface no configuration is required at all as method sensor types are activated automatically if a profile defines such sensor assignment.
...
Code Block |
---|
method-sensor-type <name> info.novatec.inspectit.agent.sensor.method.averagetimer.AverageTimerSensor <priority>
|
priority can be one of MIN, LOW, NORMAL, HIGH, MAX. It is used to define the order of the sensor type execution if more than one method sensor type is defined for a single instrumented method. Usually you will select MAX as priority.
Generic timer factory
Apart from the "Average Timer", inspectIT provides a "Timer" sensor that was created to easily integrate different realizations of the same timer behaviour. Each implementation collects and/or stores the values in a different way, thus affecting system resources in a different manner. Switching between internal implementations is completely transparent to the user of inspectIT.
...
Timer mode | Description | Network | CPU |
---|---|---|---|
aggregate | aggregates the data before sending to minimize the network load, but will affect the application JVM | ||
optimized | reduces the memory usage as it calculates the results immediately when new measurements arrive | ||
raw | timer measurements are collected, but not aggregated. All data is sent to the CMR. |
Configuration
Configuration
...
basics
At the moment the UI configuration interface does not provide configuration option for selecting the timer realization.
Configuration using configuration file(s)
...
...
method-sensor-type <name> info.novatec.inspectit.agent.sensor.method.timer.TimerSensor <priority> mode=<optimized|aggregate|raw>
priority can be one of MIN, LOW, NORMAL, HIGH, MAX. It is used to define the order of the sensor type execution if more than one method sensor type is defined for a single instrumented method.
Comparison to the Average Timer
...
This sensor enables the limitations of the string values collected. The timer sensor concretely can limit the maximum size of the strings collected as context parameters.
Configuration
...
basics
The string length configuration for all sensors is available in the Environment configuration.
Configuration using configuration file(s)
The following definition will, for example, limit all the strings collected by the sensor to 500 characters:
Code Block | ||
---|---|---|
| ||
method-sensor-type <name> info.novatec.inspectit.agent.sensor.method.timer.TimerSensor <priority> mode=<optimized|aggregate|raw> stringLength=500
|
You You can read more about string length limitations on Sensor type definition pagelimitations Environment configuration page.