Skip to main content

Connect PostgreSQL

This article covers how to connect a PostgreSQL database to a Client in AgencyAnalytics and troubleshoot connection errors.

Written by Ellen Doe

PostgreSQL Integration

The PostgreSQL integration lets you connect directly to your Client's PostgreSQL database and query data. You can display that data in widgets alongside other data on dashboards and reports.

  • Connect directly to a Client's PostgreSQL database

  • Query your data and display it in widgets

  • Combine PostgreSQL data with other data sources on the same dashboard or report

We strongly recommend having a technical resource available to set up your PostgreSQL integration. The AgencyAnalytics Support Team cannot assist with your setup or with writing queries.


Before You Start

To connect PostgreSQL successfully, the person setting up the connection needs the following:

  • Host, Port, User, Password, and Database

  • A User with read permissions for the database being entered


Connect PostgreSQL

Follow these steps to connect PostgreSQL to a Client:

Step 1: Open the Client where you'd like to connect PostgreSQL, then click the Data Sources tab at the top.

Step 2: Click the blue Connect Data Source button in the upper right corner of the page.

Step 3: Search for PostgreSQL in the search bar at the top, then click the PostgreSQL card.

Step 4: Click Connect New Account to launch the authorization window. If you've previously connected an account, click the gray Plus (+) sign at the bottom instead.

Step 5: Follow the prompts to add your host, user, and password, and finalize the connection.

Step 6: Enter the details for the instance you'd like to connect, then click Save in the bottom left.

Step 7: Find your PostgreSQL instance in the list of available connections. Click the circle to the left of the instance name.

Step 8: Click Connect in the bottom left to finalize the connection.


FAQ

Why is my PostgreSQL connection failing even though my credentials are correct?

Please add the following IP addresses to your PostgreSQL allowlist:

  • 34.148.207.61

  • 35.196.154.58

  • 34.138.181.161

  • 35.196.190.6

  • 35.187.224.203

  • 104.196.46.255

  • 34.75.134.155

  • 34.148.57.44

  • 34.139.66.246

  • 34.138.63.129

  • 34.23.214.163

  • 34.73.129.216

  • 104.196.196.229

Once those IPs are allowlisted, try connecting again.


💬 Need additional help?

If you have any questions, please contact our friendly support team by following these instructions! We're available 24/5 to help 😄

Did this answer your question?