2022-05-26 23:06:25 +08:00
---
aliases:
2022-12-10 00:36:04 +08:00
- ../data-sources/postgres/
- ../features/datasources/postgres/
2025-02-22 03:09:04 +08:00
description: Introduction to the PostgreSQL data source in Grafana.
2022-05-26 23:06:25 +08:00
keywords:
- grafana
- postgresql
- guide
Explicitly set all front matter labels in the source files (#71548)
* Set every page to have defaults of 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration pages to have of 'Cloud', 'Enterprise', and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/enterprise-licensing pages to have 'Enterprise' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/organization-management pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/provisioning pages to have 'Enterprise' and 'Open source' labels
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/recorded-queries pages to have labels cloud,enterprise
* Set administration/roles-and-permissions/access-control pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set administration/stats-and-license pages to have labels cloud,enterprise
* Set alerting pages to have labels cloud,enterprise,oss
* Set breaking-changes pages to have labels cloud,enterprise,oss
* Set dashboards pages to have labels cloud,enterprise,oss
* Set datasources pages to have labels cloud,enterprise,oss
* Set explore pages to have labels cloud,enterprise,oss
* Set fundamentals pages to have labels cloud,enterprise,oss
* Set introduction/grafana-cloud pages to have labels cloud
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Fix introduction pages products
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set panels-visualizations pages to have labels cloud,enterprise,oss
* Set release-notes pages to have labels cloud,enterprise,oss
* Set search pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/audit-grafana pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-authentication pages to have labels cloud,enterprise,oss
* Set setup-grafana/configure-security/configure-authentication/enhanced-ldap pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-authentication/saml pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-database-encryption/encrypt-secrets-using-hashicorp-key-vault pages to have labels cloud,enterprise
* Set setup-grafana/configure-security/configure-request-security pages to have labels cloud,enterprise,oss
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/configure-team-sync pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set setup-grafana/configure-security/export-logs pages to have labels cloud,enterprise
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
* Set troubleshooting pages to have labels cloud,enterprise,oss
* Set whatsnew pages to have labels cloud,enterprise,oss
* Apply updated labels from review
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2023-07-18 16:10:12 +08:00
labels:
products:
- cloud
- enterprise
- oss
2022-11-01 23:22:06 +08:00
menuTitle: PostgreSQL
title: PostgreSQL data source
2022-05-26 23:06:25 +08:00
weight: 1200
2024-05-28 22:17:49 +08:00
refs:
2025-02-22 03:09:04 +08:00
annotate-visualizations:
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /dashboards/build-dashboards/annotate-visualizations/
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana-cloud/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /dashboards/build-dashboards/annotate-visualizations/
configure-postgres-data-source:
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/postgres/configure/
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana-cloud/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/postgres/configure/
postgres-query-editor:
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/postgres/query-editor/
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana-cloud/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /datasources/postgres/query-editor/
alerting:
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /alerting/
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana-cloud/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana-cloud/alerting-and-irm/alerting/
transformations:
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/query-transform-data/transform-data/
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana-cloud/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/query-transform-data/transform-data/
visualizations:
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana/< GRAFANA_VERSION > /panels-visualizations/visualizations/
2024-05-28 22:17:49 +08:00
- pattern: /docs/grafana-cloud/
2025-02-22 03:09:04 +08:00
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/
2022-05-26 23:06:25 +08:00
---
2017-10-10 21:19:14 +08:00
2021-04-14 02:35:17 +08:00
# PostgreSQL data source
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
Grafana includes a built-in PostgreSQL data source plugin, enabling you to query and visualize data from any PostgreSQL-compatible database. You don't need to install a plugin to add the PostgreSQL data source to your Grafana instance.
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
Grafana offers several configuration options for this data source as well as a visual and code-based query editor.
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
## Get started with the PostgreSQL data source
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
The following documents will help you get started with the PostgreSQL data source in Grafana:
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
- [Configure the PostgreSQL data source ](ref:configure-postgres-data-source )
- [PostgreSQL query editor ](ref:postgres-query-editor )
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
After you have configured the data source you can:
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
- Create a variety of [visualizations ](ref:visualizations )
- Add [annotations ](ref:annotate-visualizations )
- Set up [alerting ](ref:alerting )
- Add [transformations ](ref:transformations )
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
View a PostgreSQL overview on Grafana Play:
2017-10-10 21:19:14 +08:00
2025-02-22 03:09:04 +08:00
{{< docs / play title = "PostgreSQL Overview" url = "https://play.grafana.org/d/ddvpgdhiwjvuod/postgresql-overview" > }}