docs/sources/datasources/postgres/_index.md
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.
This data source supports the following PostgreSQL-compatible databases:
Grafana recommends using the latest available version for your database for optimal compatibility.
The PostgreSQL data source supports:
The PostgreSQL plugin uses the PGX driver for database connectivity. The following PostgreSQL data types are supported:
int2, int4, int8, float4, float8, numerictext, varchar, char, bpchartimestamp, timestamptz, date, time, timetz, intervalbooljson, jsonbenum types are returned as string values.The following documents help you get started with the PostgreSQL data source:
After you configure the PostgreSQL data source, you can:
To see the PostgreSQL data source in action, explore the demo dashboard on Grafana Play:
{{< docs/play title="PostgreSQL Overview" url="https://play.grafana.org/d/ddvpgdhiwjvuod/postgresql-overview" >}}
The following databases use the PostgreSQL wire protocol and may work with this data source:
time_bucket support.