# 面板

> 查看可视化信息
---

> PostgreSQL 集群的 Grafana 监控面板：[演示](https://g.pgsty.com/d/pgsql-overview) 和 [图库](https://github.com/pgsty/pigsty/wiki/Gallery)。

[![pigsty-dashboard.jpg](/img/pigsty/dashboard.gif)](https://github.com/pgsty/pigsty/wiki/Gallery)

共有 26 个关于 PostgreSQL 的默认 Grafana 监控面板，分为 4 个层级，并按数据源分为 [PGSQL](/zh/docs/pgsql/dashboard/#overview)、[PGCAT](/zh/docs/pgsql/dashboard/#pgcat) 和 [PGLOG](/zh/docs/pgsql/dashboard/#pglog)。

|                        概览                        |                          集群                          |                            实例                            |                        数据库                        |
|:------------------------------------------------:|:----------------------------------------------------:|:--------------------------------------------------------:|:-------------------------------------------------:|
| [PGSQL 概览](https://g.pgsty.com/d/pgsql-overview) |   [PGSQL 集群](https://g.pgsty.com/d/pgsql-cluster)    |     [PGSQL 实例](https://g.pgsty.com/d/pgsql-instance)     | [PGSQL 数据库](https://g.pgsty.com/d/pgsql-database) |
|  [PGSQL 告警](https://g.pgsty.com/d/pgsql-alert)   |   [PGRDS 集群](https://g.pgsty.com/d/pgrds-cluster)    |     [PGRDS 实例](https://g.pgsty.com/d/pgrds-instance)     | [PGCAT 数据库](https://g.pgsty.com/d/pgcat-database) |
|  [PGSQL 分片](https://g.pgsty.com/d/pgsql-shard)   |   [PGSQL 活动](https://g.pgsty.com/d/pgsql-activity)   |     [PGCAT 实例](https://g.pgsty.com/d/pgcat-instance)     |   [PGSQL 表](https://g.pgsty.com/d/pgsql-tables)   |
|                                                  | [PGSQL 复制](https://g.pgsty.com/d/pgsql-replication)  |     [PGSQL 持久化](https://g.pgsty.com/d/pgsql-persist)     |  [PGSQL 表详情](https://g.pgsty.com/d/pgsql-table)   |
|                                                  |   [PGSQL 服务](https://g.pgsty.com/d/pgsql-service)    |      [PGSQL 代理](https://g.pgsty.com/d/pgsql-proxy)       |  [PGCAT 表详情](https://g.pgsty.com/d/pgcat-table)   |
|                                                  | [PGSQL 数据库集](https://g.pgsty.com/d/pgsql-databases)  | [PGSQL Pgbouncer](https://g.pgsty.com/d/pgsql-pgbouncer) |   [PGSQL 查询](https://g.pgsty.com/d/pgsql-query)   |
|                                                  | [PGSQL Patroni](https://g.pgsty.com/d/pgsql-patroni) |     [PGSQL 会话](https://g.pgsty.com/d/pgsql-session)      |   [PGCAT 查询](https://g.pgsty.com/d/pgcat-query)   |
|                                                  |    [PGSQL PITR](https://g.pgsty.com/d/pgsql-pitr)    |      [PGSQL 事务](https://g.pgsty.com/d/pgsql-xacts)       |   [PGCAT 锁](https://g.pgsty.com/d/pgcat-locks)    |
|                                                  |                                                      |    [PGSQL 导出器](https://g.pgsty.com/d/pgsql-exporter)     |  [PGCAT 模式](https://g.pgsty.com/d/pgcat-schema)   |

**概览**

- [pgsql-overview](https://g.pgsty.com/d/pgsql-overview)：PGSQL 模块的主要监控面板
- [pgsql-alert](https://g.pgsty.com/d/pgsql-alert)：全局 PGSQL 关键指标和告警事件
- [pgsql-shard](https://g.pgsty.com/d/pgsql-shard)：水平分片 PGSQL 集群概览，例如 citus / gpsql 集群

**集群**

- [pgsql-cluster](https://g.pgsty.com/d/pgsql-cluster)：PGSQL 集群的主要监控面板
- [pgrds-cluster](https://g.pgsty.com/d/pgrds-cluster)：RDS 的 PGSQL 集群监控面板，仅关注所有 postgres 指标
- [pgsql-activity](https://g.pgsty.com/d/pgsql-activity)：关注 PGSQL 集群的会话/负载/QPS/TPS/锁
- [pgsql-replication](https://g.pgsty.com/d/pgsql-replication)：关注 PGSQL 集群复制、槽位和发布/订阅
- [pgsql-service](https://g.pgsty.com/d/pgsql-service)：关注 PGSQL 集群服务、代理、路由和负载均衡器
- [pgsql-databases](https://g.pgsty.com/d/pgsql-databases)：关注数据库 CRUD、慢查询和跨所有实例的表统计
- [pgsql-patroni](https://g.pgsty.com/d/pgsql-patroni)：关注集群高可用代理 patroni 状态
- [pgsql-pitr](https://g.pgsty.com/d/pgsql-pitr)：关注 PITR 过程中集群状态的上下文

**实例**

- [pgsql-instance](https://g.pgsty.com/d/pgsql-instance)：单个 PGSQL 实例的主要监控面板
- [pgrds-instance](https://g.pgsty.com/d/pgrds-instance)：RDS 的 PGSQL 实例监控面板，仅关注所有 postgres 指标
- [pgcat-instance](https://g.pgsty.com/d/pgcat-instance)：直接从数据库目录获取的实例信息
- [pgsql-persist](https://g.pgsty.com/d/pgsql-persist)：关于持久化的指标：WAL、XID、检查点、归档、IO
- [pgsql-proxy](https://g.pgsty.com/d/pgsql-proxy)：关于服务提供商 haproxy 的指标
- [pgsql-queries](https://g.pgsty.com/d/pgsql-queries)：单个实例中所有查询的概览
- [pgsql-session](https://g.pgsty.com/d/pgsql-session)：单个实例中关于会话和活动/空闲时间的指标
- [pgsql-xacts](https://g.pgsty.com/d/pgsql-xacts)：关于事务、锁、查询等的指标
- [pgsql-exporter](https://g.pgsty.com/d/pgsql-exporter)：Postgres 和 Pgbouncer 导出器自监控指标

**数据库**

- [pgsql-database](https://g.pgsty.com/d/pgsql-database)：单个 PGSQL 数据库的主要监控面板
- [pgcat-database](https://g.pgsty.com/d/pgcat-database)：直接从数据库目录获取的数据库信息
- [pgsql-tables](https://g.pgsty.com/d/pgsql-tables)：单个数据库内的表/索引访问指标
- [pgsql-table](https://g.pgsty.com/d/pgsql-table)：单个表的详细信息（QPS/RT/索引/顺序扫描...）
- [pgcat-table](https://g.pgsty.com/d/pgcat-table)：直接从数据库目录获取的单个表的详细信息（统计/膨胀/...）
- [pgsql-query](https://g.pgsty.com/d/pgsql-query)：单个查询的详细信息（QPS/RT）
- [pgcat-query](https://g.pgsty.com/d/pgcat-query)：直接从数据库目录获取的单个查询的详细信息（SQL/统计）

------

## 概览 {#overview}

[PGSQL 概览](https://g.pgsty.com/d/pgsql-overview)：PGSQL 模块的主要监控面板



[PGSQL 告警](https://g.pgsty.com/d/pgsql-alert)：全局 PGSQL 关键指标和告警事件



[PGSQL 分片](https://g.pgsty.com/d/pgsql-shard)：水平分片 PGSQL 集群概览，例如 CITUS / GPSQL 集群



------

## 集群 {#cluster}

[PGSQL 集群](https://g.pgsty.com/d/pgsql-cluster)：PGSQL 集群的主要监控面板



[PGRDS 集群](https://g.pgsty.com/d/pgrds-cluster)：RDS 的 PGSQL 集群监控面板，仅关注所有 postgres 指标



[PGSQL 服务](https://g.pgsty.com/d/pgsql-service)：关注 PGSQL 集群服务、代理、路由和负载均衡器



[PGSQL 活动](https://g.pgsty.com/d/pgsql-activity)：关注 PGSQL 集群的会话/负载/QPS/TPS/锁



[PGSQL 复制](https://g.pgsty.com/d/pgsql-replication)：关注 PGSQL 集群复制、槽位和发布/订阅



[PGSQL 数据库集](https://g.pgsty.com/d/pgsql-databases)：关注数据库 CRUD、慢查询和跨所有实例的表统计



[PGSQL Patroni](https://g.pgsty.com/d/pgsql-patroni)：关注集群高可用代理 patroni 状态



[PGSQL PITR](https://g.pgsty.com/d/pgsql-pitr)：关注 PITR 过程中集群状态的上下文



------

## 实例 {#instance}

[PGSQL 实例](https://g.pgsty.com/d/pgsql-instance)：单个 PGSQL 实例的主要监控面板



[PGRDS 实例](https://g.pgsty.com/d/pgrds-instance)：RDS 的 PGSQL 实例监控面板，仅关注所有 postgres 指标



[PGSQL 代理](https://g.pgsty.com/d/pgsql-proxy)：关于服务提供商 haproxy 的指标



[PGSQL Pgbouncer](https://g.pgsty.com/d/pgsql-pgbouncer)：关于单个 pgbouncer 连接池实例的指标



[PGSQL 持久化](https://g.pgsty.com/d/pgsql-persist)：关于持久化的指标：WAL、XID、检查点、归档、IO



[PGSQL 事务](https://g.pgsty.com/d/pgsql-xacts)：关于事务、锁、查询等的指标



[PGSQL 会话](https://g.pgsty.com/d/pgsql-session)：单个实例中关于会话和活动/空闲时间的指标



[PGSQL 导出器](https://g.pgsty.com/d/pgsql-exporter)：Postgres 和 Pgbouncer 导出器自监控指标



------

## 数据库 {#database}

[PGSQL 数据库](https://g.pgsty.com/d/pgsql-database)：单个 PGSQL 数据库的主要监控面板



[PGSQL 表](https://g.pgsty.com/d/pgsql-tables)：单个数据库内的表/索引访问指标



[PGSQL 表详情](https://g.pgsty.com/d/pgsql-table)：单个表的详细信息（QPS/RT/索引/顺序扫描...）



[PGSQL 查询](https://g.pgsty.com/d/pgsql-query)：单个查询的详细信息（QPS/RT）



------

## PGCAT

[PGCAT 实例](https://g.pgsty.com/d/pgcat-instance)：直接从数据库目录获取的实例信息



[PGCAT 数据库](https://g.pgsty.com/d/pgcat-database)：直接从数据库目录获取的数据库信息



[PGCAT 模式](https://g.pgsty.com/d/pgcat-schema)：直接从数据库目录获取的单个模式的详细信息



[PGCAT 表详情](https://g.pgsty.com/d/pgcat-table)：直接从数据库目录获取的单个表的详细信息



[PGCAT 查询](https://g.pgsty.com/d/pgcat-query)：直接从数据库目录获取的单类查询的详细信息



[PGCAT 锁](https://g.pgsty.com/d/pgcat-locks)：直接从数据库目录获取的活动锁和活动的详细信息



------

## PGLOG

[PGLOG 概览](https://g.pgsty.com/d/pglog-overview)：Pigsty 元数据库中 CSV 日志样本的概览



[PGLOG 详情](https://g.pgsty.com/d/pglog-overview)：Pigsty 元数据库中 CSV 日志样本的单个会话详情
