Integrating with Prometheus to collect events
Prometheus is an open-source system monitoring and alerting solution that collects and stores metrics as time-series data.
Configure an integration with Prometheus, to view the alert data from Prometheus in BMC Helix Operations Management and derive actionable insights. BMC Helix Operations Management displays alerts as events.
As a tenant administrator, perform the following steps to integrate with Prometheus, verify the integration, and view the collected data in various BMC products.
Before you begin
- Have the egress IP of your tenant. Request the egress IP from BMC Software if you don't already have it.
- Ensure that you have a firewall rule to allow traffic from the egress IP to the Prometheus host on the listening port (default value is 9093).
To integrate with Prometheus
In BMC Helix Intelligent Integrations, on the CONNECTORS tab, click. in the SOURCES panel
- Click the Prometheus Alerts tile.
- Specify the following details for the source connection:
Specify a unique instance name.
We recommend that you specify the instance name in the following format:
The instance qualifier helps you to distinguish the multiple instances configured from the same source server. For example, you can name your instances as Prometheus_Host_PROD, Prometheus_Host_TEST, and so on.
- Specify the Prometheus Altersmanager host name.
- Specify the Prometheus HTTP or HTTPS port number depending on the connection protocol (default value is 9093).
Select the HTTPS option to use an https connection to the Prometheus host.
We recommend that you do not select the Allow Unsigned Certificate option in a production environment. You might want to select this option to allow unsigned certificates in a test environment. See the Prometheus documentation to learn how to install SSL certificates.
- Specify the number of maximum concurrent REST API requests that should be executed during a collection schedule (default value is 5).
- NEW IN 22.2.01 Specify the user name and password. Ensure that the specified user can access the Prometheus REST API.
- Click Proxy and specify whether you want to configure a proxy server.
If yes, specify the host name and port number (default value is 8888).
- Click VALIDATE AND CREATE.
The specified connection details are validated and the corresponding source connection is created in the Source Connection list.
Select the source connection that you created from the list if it is not selected already.
The destination host connection is created and configured automatically for each tenant when the source connection is created.
Click a data type and specify the configuration parameters in the Collectors section as described in the following table:
Parameter Name Data Type Prometheus Alerts
Specify the data collection frequency (in minutes).
For example, if you set this parameter to 5 mins, the collector runs every 5 mins.
For more information about this parameter, see Data collection schedule.
BMC recommendation: 5 minutes
Data Collection Window
Specify the historical time period (in minutes) from the current time for which the data should be collected from Prometheus.
For example, if you set Collection Schedule parameter to 5 mins (considering 00:32 as the current time) and the Data Collection Window parameter to 5 mins, data is extracted from 00:27 to 00:32.
For more information about this parameter, see Data collection window.
BMC recommendation: 5 minutes
Specify the time (in minutes) by which the data time window should be shifted far back on the timeline.
This parameter is useful in slow, late data availability situations.
For example, if you set the Collection Schedule parameter to 5 mins, the Data Collection Window parameter to 5 mins, and the Data Latency parameter to 2 mins, data is extracted from 00:23 to 00:28, when run from just after 00:30.
For more information about this parameter, see Data latency.
Select all or a subset of labels from the list.
This list of applications is updated automatically from Prometheus.
Click CREATE COLLECTORS to create the required collector streams for selected data types.
- Click a data type and specify the configuration parameters in the Distributors section as described in the following table:
Parameter Name Default
Max Batching Size
Specify the maximum number of data items to send in a single POST request to the destination API. The batch size depends on the destination’s ability to buffer the incoming data.
Max Batching Delay
Specify the maximum time (in seconds) to wait before building a batch and processing.
Base Retry Delay
Specify the initial time (in seconds) for which to wait before retrying to build a batch and processing. The waiting time increases in the following sequence: n1, n2, n3, and so on, where n indicates the number of seconds.
For example, if you set the value to 2 seconds, retry is performed after 2, 4, 8, 16, ... seconds.
Max Intra-Retry Delay
Specify the maximum limit for the base retry delay. For example, if you set the value of this parameter to 60 seconds and the value of the Base Retry Delay parameter to 2 seconds, retries would be performed 2, 4, 8, 16, 32, 64, 64,...seconds later again.
Max Retry Duration
Specify the total time for retrying a delivery. For REST destinations, a delivery is a batch of data items in one POST request.
For example, if you set the value of this parameter to 8 hours, and the value of the Base Retry Delay parameter to 2 seconds, requests are sent for 2+4+8+16+32+64+132... until 8 hours in total duration is reached. After that, no subsequent attempts are made to retry the delivery.
The assumption here is that if there is an outage or other issue with the destination tool, recovery should take less than the value of the Max Retry Duration parameter to complete.
- Click CREATE DISTRIBUTORS to create the required distributor streams for the selected data types.
- Click one of the following buttons:
- SAVE STREAM: Click this button if you want to edit the integration details before creating the instance. After you save the stream, the connector that you just created is listed in the SOURCES panel. Move the slider to the right to start the data stream.
- SAVE AND START STREAM: Click this button if you want to save the integration details and start receiving data immediately.
For more information about data streams, see Starting or stopping data streams.
To verify the integration
In BMC Helix Intelligent Integrations, on the SOURCES panel, confirm that the data streams for the integration you created are running. Data streaming is indicated by moving colored arrows.
A moving dark blue arrow () indicates that event data is being streamed.
To view events in BMC Helix Operations Management
In BMC Helix Operations Management, select Monitoring > Events to view the events received from Prometheus .
If an event does not include the source's host name from which the event has been received, the Host column on the Events page shows the name of the computer where Prometheus is installed.
For information about events, see .
To view situations in BMC Helix AIOps
In BMC Helix AIOps, on the Overview page to view the situations for event data received from Prometheus.