mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 02:52:13 +08:00

* created new topic docs * added info to config doc * updates to config doc * updates to config doc * finished config doc * updated Query editor doc * final edits * rename, ref URI work * a few more updates prior to PR issue * fixed the double Macros heading issue * final edits and cleanup * edits based on feedback * ran prettier * added updates * updates based on feedback * vale linter issues * more vale linting issues addressed * small addition on main page * ran prettier again * changed title * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/configure/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * changed Grafana's * added changes * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/datasources/postgres/query-editor/_index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * ran prettier again * Remove aliases Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Put code in `code` Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Avoid bold for emphasis Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix link Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
74 lines
2.9 KiB
Markdown
74 lines
2.9 KiB
Markdown
---
|
|
aliases:
|
|
- ../data-sources/postgres/
|
|
- ../features/datasources/postgres/
|
|
description: Introduction to the PostgreSQL data source in Grafana.
|
|
keywords:
|
|
- grafana
|
|
- postgresql
|
|
- guide
|
|
labels:
|
|
products:
|
|
- cloud
|
|
- enterprise
|
|
- oss
|
|
menuTitle: PostgreSQL
|
|
title: PostgreSQL data source
|
|
weight: 1200
|
|
refs:
|
|
annotate-visualizations:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/annotate-visualizations/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/annotate-visualizations/
|
|
configure-postgres-data-source:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/configure/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/configure/
|
|
postgres-query-editor:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/query-editor/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/postgres/query-editor/
|
|
alerting:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/alerting/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana-cloud/alerting-and-irm/alerting/
|
|
transformations:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/query-transform-data/transform-data/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana-cloud/visualizations/panels-visualizations/query-transform-data/transform-data/
|
|
visualizations:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/visualizations/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana-cloud/visualizations/panels-visualizations/visualizations/
|
|
---
|
|
|
|
# PostgreSQL data source
|
|
|
|
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.
|
|
|
|
Grafana offers several configuration options for this data source as well as a visual and code-based query editor.
|
|
|
|
## Get started with the PostgreSQL data source
|
|
|
|
The following documents will help you get started with the PostgreSQL data source in Grafana:
|
|
|
|
- [Configure the PostgreSQL data source](ref:configure-postgres-data-source)
|
|
- [PostgreSQL query editor](ref:postgres-query-editor)
|
|
|
|
After you have configured the data source you can:
|
|
|
|
- Create a variety of [visualizations](ref:visualizations)
|
|
- Add [annotations](ref:annotate-visualizations)
|
|
- Set up [alerting](ref:alerting)
|
|
- Add [transformations](ref:transformations)
|
|
|
|
View a PostgreSQL overview on Grafana Play:
|
|
|
|
{{< docs/play title="PostgreSQL Overview" url="https://play.grafana.org/d/ddvpgdhiwjvuod/postgresql-overview" >}}
|