---
title: Monitoring & troubleshooting
sidebar_label: Monitoring & troubleshooting
description: Tools and techniques for monitoring PostgreSQL and solving common problems.
---

# Monitoring & troubleshooting

Tools and techniques for monitoring PostgreSQL and solving common problems.

## Guides by category

### System monitoring

Track database health, performance metrics, and resource usage.

- [How to troubleshoot Postgres performance using FlameGraphs and eBPF (or perf)](/docs/postgres-howtos/monitoring-troubleshooting/system-monitoring/flamegraphs-for-postgres) - 6 min *(beginner)*
- [How to determine the replication lag](/docs/postgres-howtos/monitoring-troubleshooting/system-monitoring/how-to-determine-the-replication-lag) - 5 min *(intermediate)*

### Lock analysis

Understand and resolve locking issues and deadlocks.

- [How to understand what's blocking DDL](/docs/postgres-howtos/monitoring-troubleshooting/lock-analysis/how-to-understand-what-is-blocking-ddl) - 5 min

### Troubleshooting

Diagnose and fix common PostgreSQL problems.

- [How to flush caches (OS page cache and Postgres buffer pool)](/docs/postgres-howtos/monitoring-troubleshooting/troubleshooting/how-to-flush-caches) - 5 min
- [How to NOT get screwed as a DBA (DBRE)](/docs/postgres-howtos/monitoring-troubleshooting/troubleshooting/how-to-not-get-screwed-as-a-dba) - 5 min *(beginner)*

