Configure PostgreSQL data source connection details
In this milestone, you configure the connection details and authentication credentials so that Grafana Cloud can connect to your PostgreSQL database.
This includes the host and port, the database name, the user name and password, and the TLS/SSL mode.
In the Host URL field under the Connection section, enter the hostname or IP address and port of your PostgreSQL server.
For example, enter
localhost:5432orpostgres.example.com:5432. The default PostgreSQL port is5432.In the Database name field, enter the name of your PostgreSQL database.
For example, enter
grafana. This database is used as the default for queries in the query editor.In the Username field under the Authentication section, enter the name of the PostgreSQL user you created.
For example, enter
grafanareader.In the Password field, enter the password for the PostgreSQL user you created.
Next, set the TLS/SSL Mode to match your database. For cloud-hosted databases such as Amazon RDS, Azure Database for PostgreSQL, and Google Cloud SQL, require is the recommended minimum. Use verify-full for the most secure option, or disable only for local development on a trusted network.
In the next milestone, you’ll select the private data source connect (PDC) agent and test the connection.