---
title: "PostgreSQL | Grafana Labs"
description: "PostgreSQL data source for application data."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

## PostgreSQL: Query your databases directly

**What it’s for:** Application data including sales metrics, user counts, inventory, JSON data, and any PostgreSQL-stored data.

## Also works with

TimescaleDB (time-series extension for PostgreSQL)

## Trade-offs

| Pros                                           | Cons                     |
|------------------------------------------------|--------------------------|
| Familiar SQL syntax                            | Query performance varies |
| Advanced SQL features (CTEs, window functions) | Connection management    |
| JSON/JSONB support                             | Need read access         |
| TimescaleDB compatible                         |                          |

## Best for

- Application dashboards
- Data already in PostgreSQL
- Semi-structured data (JSON)
- Time-series data with TimescaleDB
- Combining technical and application metrics

## Documentation

View the full documentation. *Learning path coming soon!*

[PostgreSQL data source](https://grafana.com/docs/grafana/latest/datasources/postgres/)
