Creating a Prometheus connection
Written by
Updated at February 27, 2024
To create a Prometheus connection:
Warning
If you use a new DataLens object model with workbooks and collections:
- Go to the DataLens home page
. In the left-hand panel, select Collections and workbooks. - Open the workbook, click Create in the top-right corner, and select the appropriate object.
Follow the guide from step 3.
-
Go to the connections page
. -
Click Create connection.
-
Select the Prometheus source.
-
Specify the connection parameters:
- Hostname: Specify the path to the Prometheus host. You can specify multiple hosts in a comma-separated list. If you are unable to connect to the first host, DataLens will select the next one from the list.
- Port: Specify the Prometheus connection port.
- URL: Specify the URL of the Prometheus API.
- Username: Specify the username for the Prometheus connection.
- Password: Enter the password for the user.
- Cache TTL in seconds: Specify the cache time-to-live or leave the default value. The recommended value is 300 seconds (5 minutes).
- HTTPS: Enable the secure connection option if your server supports HTTPS.
-
Click Create connection.
-
Enter the connection name and click Create.
Note
You can check the host connection before creating it. To do this, click Check connection.