How to add a custom monitor to LoadRunner Analysis
Adding a custom monitor to LoadRunner Analysis
1. Discover the offline reported event type.
a. In the offline def files in the result directory (e.g., "offl_0.def"), search for a file reporting one of the monitor’s measurements.
b. Verify it is the correct monitor file and not some other monitor (check the "GraphGroupMenuTitle" key).
c. Search for a key called "GraphType," or a key called "GraphGroupMenuTitle" if the GraphType key does not exist. Call this key value even type.
2. Create a definition file for this graph.
a. Copy one of the existing database definition files (Oracle.def or SQLserver.def) and rename it (e.g., "MyDBmon.def"). In this case, "MyDBmon" is the template name.
The user will not see this name in any way.
b. Update this file.
1. Update the graph’s title (a key called "Title" in the "BasicInfo" section – the user will see this).
2. Update the description (a key called "Description" in the "BasicInfo" section – the user will see this).
3. Update the event type (a key called "EventType" in the "BasicInfo" section – should be the same as the even type from the offline def files).
4. Update the basic filter value (a key called "Values" in the "BasicFilter0" section – should be the same as the even type from the offline def files).
The help context for the new graph will not be updated.
3. Add the new graph to the UI. Go to the <LoadRunner>\bin\dat\GeneralSettings.txt file, in the section called "Database Server Resources," add the new graph and update the number of graphs. The new section should look like this:
The name you entered here (in this case, "MyDBmon") should be the template name (the definition file without the ".def" extension). The user will not see this name in any way.