Creating a Prometheus connection
Written by
Updated at June 2, 2026
To create a Prometheus connection:
-
Open the connection creation page
. -
Under Databases, select the Prometheus connection.
-
Select the authentication mode and specify the connection parameters:
PasswordHeader- Host name: Specify the path to the Prometheus host. You can specify multiple hosts in a comma-separated list. If you fail to connect to the first host, DataLens will select the next one from the list.
- Port: Specify the Prometheus connection port.
- URL path: Optionally, specify the path to the Prometheus API (part of the URL
without a protocol, host name, and port). - Username: Specify the username for the Prometheus connection.
- Password: Enter the password for the user.
- Cache TTL in seconds: Specify the cache TTL or leave the default value. The recommended value is 300 seconds (5 minutes).
- HTTPS. Enable the secure connection option if your server supports HTTPS.

- Host name: Specify the path to the Prometheus host. You can specify multiple hosts in a comma-separated list. If you fail to connect to the first host, DataLens will select the next one from the list.
- Port: Specify the Prometheus connection port.
- URL path: Optionally, specify the path to the Prometheus API (part of the URL
without a protocol, host name, and port). - Authorization header: Specify the authorization token.
- Cache TTL in seconds: Specify the cache TTL or leave the default value. The recommended value is 300 seconds (5 minutes).
- HTTPS. Enable the secure connection option if your server supports HTTPS.

-
Optionally, test the connection by clicking Check connection.
-
Click Create connection.
-
Select the workbook to save your connection to or create a new one. If using legacy folder navigation, select a folder to save the connection to. Click Create.
-
Enter a name for the connection and click Create.