Prometheus monitor

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 integration

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.

Back to top

Set up the Prometheus monitor

Set up the Prometheus monitor to collect data from the Prometheus server.

To set up the Prometheus monitor:

  1. Select a resources folder.

    Select a resources folder for the monitor profile in the resources tree, or create a new folder as follows:

    1. In the top banner, click the module name or the dropdown arrow and select Assets > Monitors.

    2. Click the New Folder button and enter a name for the monitor resources folder.

  2. Create a monitor profile.

    1. Click the New Monitor Profile button , and make sure Monitor Profile is selected.

    2. Enter a name and optional description for the monitor profile, and click Save. An empty monitor profile is added to the selected resources folder.

    3. Select the monitor profile you just added and click the Add Monitor button .

    1. In the Monitor Type Selection tab, select the Prometheus monitor type and click Next.

    2. In the Monitor Definition tab, enter the server details:

      UI Elements

      Description

      Host

      The URL of the Prometheus server whose resources you want to monitor. For a list of the supported formats, see the Support Matrix.

      Port

      The port number of the Prometheus server.

      Use HTTPS Specify if you are using a secure HTTP connection.
    3. 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.

    4. Click Save. The monitor details are displayed in the Monitors tab for the selected monitor profile.

  3. Associate the monitor with your test.

    For details, see Step 3: Associate monitors with your test.

  4. When you run a test with an Prometheus server monitor, the Controller displays metrics in the Prometheus server graph.

Back to top

See also: