This section describes how to set up the Prometheus monitor, and view the data collected from the Prometheus server in the online and offline graphs.
Prometheus is a system monitoring and alerting application that records real-time metrics in a time series database. LoadRunner Enterprise's Prometheus monitor fetches measurements from the Prometheus server and displays them during the performance test run in the online and offline Prometheus graphs.
For example, if you use Prometheus to monitor your load generator machine, you can select Prometheus measurements related to the load generator to display in LoadRunner Enterprise.
We recommend using the latest stable version of Prometheus when working with LoadRunner Enterprise's Prometheus integration.
Set up the Prometheus monitor to collect data from the Prometheus server.
To set up the Prometheus monitor:
Select a resources folder.
Select a resources folder for the monitor profile in the resources tree, or create a new folder as follows:
In LoadRunner Enterprise, click Open the navigation toolbar and select Monitors (under Assets).
Click New Folder and enter a name for the monitor resources folder.
Create a monitor profile.
Click New Monitor Profile , and make sure Monitor Profile is selected.
Enter a name and optional description for the monitor profile, and click Save. An empty monitor profile is added to the selected resources folder.
Select the monitor profile you just added and click Add Monitor .
In the Monitor Type Selection tab, select the Prometheus monitor type and click Next.
In the Monitor Definition tab, enter the server details:
The URL of the Prometheus server whose resources you want to monitor.
The port number of the Prometheus server.
Use HTTPS Specify if you are using a secure HTTP connection.
Click Get Counters. When successfully connected to the API, the Select Counters tab is displayed. The tab is populated with resource groups from the Prometheus server that are relevant for the entered credentials.
Expand a group and select the required resources, then click to add them to the Selected Counters table. Resource groups that cannot be expanded are empty.
Click Save. The monitor details are displayed in the Monitors tab for the selected monitor profile.
Associate the monitor with your test.
For details, see Step 3: Associate monitors with your test.
- When you run a test with an Prometheus server monitor, the Controller displays metrics in the Prometheus server graph.