---
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)

## Good to know

- Query language: SQL, including advanced features like common table expressions (CTEs) and window functions
- Native JSON and JSONB support for querying semi-structured data
- Works with TimescaleDB, the time-series extension for PostgreSQL

## Best for

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

> **Tip:** As a general practice, point dashboard queries at a read replica to protect a busy production database.

* * *

## Documentation

View the full documentation.

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