Grafana: Connecting Grafana to PostgreSQL

This documentation is part of the Getting started guide. You can view the complete guide here: How to get started with Grafana.

👋 Welcome to the Stackhero documentation!

Stackhero offers a ready-to-use Grafana cloud solution that provides a host of benefits, including:

  • Unlimited users, dashboards, and alerts.
  • Unlimited and dedicated SMTP email server included.
  • Plugins installable in one click.
  • Seamless SSO support, compatible with GitLab, GitHub, Google, and generic OAuth2 protocols.
  • Effortless updates with just a click.
  • Customisable domain name secured with HTTPS (for example, https://grafana.your-company.com).
  • Optimal performance and robust security powered by a private and dedicated VM.

Save time and simplify your life: it only takes 5 minutes to try Stackhero's Grafana cloud hosting solution!

Log in to your Grafana web panel and navigate to Configuration / Data sources / Add a data source.

Select the data source labelled "PostgreSQL" and complete the form with the following information:

  1. In "Host", enter your PostgreSQL service domain (for example, <XXXXXX>.stackhero-network.com:5432).
  2. In "Database", enter your PostgreSQL database name (by default, this is admin).
  3. In both "User" and "Password", enter your PostgreSQL credentials (the default user is admin and the password is the one specified in your PostgreSQL service configuration).

PostgreSQL data source configurationPostgreSQL data source configuration