feat:
--ADDED performance matrix for db
This commit is contained in:
1 parent
0313fbfee0
commit
39507a1a8d
2 files changed
+236
-1
No files matched your search
@@ -50,3 +50,45 @@ Using my uploaded photo, show me what I would have looked like around 1985. Pres
|
||||
| **Zabbix** | Infrastructure monitoring | Servers, databases, network, disk, CPU, alerts |
|
||||
| **Datadog** | Commercial monitoring | DB + server + application monitoring |
|
||||
| **New Relic** | Application + DB | Slow SQL, response times, application/database relationship |
|
||||
|
||||
|
||||
DASHBOARD
|
||||
|
||||
| Metric | What it tells you | Good dashboard display |
|
||||
| ------------------------ | --------------------------------------------------------- | ------------------------ |
|
||||
| **Database Status** | PostgreSQL reachable or not | 🟢 Online / 🔴 Offline |
|
||||
| **Uptime** | How long PostgreSQL has been running | `12d 7h 32m` |
|
||||
| **Active Connections** | Connections currently executing queries | Gauge |
|
||||
| **Total Connections** | Connections in use | `42 / 100` |
|
||||
| **Connection Usage %** | How close you are to `max_connections` | Gauge / % |
|
||||
| **Idle Connections** | Connections sitting idle | Number |
|
||||
| **TPS** | Transactions per second | Time-series graph |
|
||||
| **Commits/sec** | Successful transaction rate | Graph |
|
||||
| **Rollbacks/sec** | Failed/aborted transaction rate | Graph |
|
||||
| **Cache Hit Ratio** | How often PostgreSQL serves data from RAM instead of disk | % |
|
||||
| **Query Latency** | Average query execution time | ms |
|
||||
| **Slow Queries** | Queries exceeding threshold, e.g. >1s | Table |
|
||||
| **Long Running Queries** | Queries running unusually long | Table |
|
||||
| **Blocked Queries** | Queries waiting on another transaction | Number/Table |
|
||||
| **Locks** | Current DB locks | Gauge |
|
||||
| **Deadlocks** | Deadlocks detected | Counter |
|
||||
| **Database Size** | Total database disk usage | GB |
|
||||
| **Table Size** | Largest tables | Bar chart |
|
||||
| **Index Size** | Storage consumed by indexes | GB |
|
||||
| **Tuple Reads / Writes** | Database activity | Graph |
|
||||
| **Rows Inserted/sec** | INSERT activity | Graph |
|
||||
| **Rows Updated/sec** | UPDATE activity | Graph |
|
||||
| **Rows Deleted/sec** | DELETE activity | Graph |
|
||||
| **Sequential Scans** | Potentially expensive full-table scans | Counter |
|
||||
| **Index Scans** | Index usage | Counter |
|
||||
| **Dead Tuples** | Rows VACUUM needs to clean | Number |
|
||||
| **Autovacuum Activity** | Whether cleanup is working | Status |
|
||||
| **WAL Generated/sec** | Write workload / replication workload | MB/s |
|
||||
| **WAL Size** | WAL storage usage | GB |
|
||||
| **Replication Lag** | Delay between nodes | ms / MB |
|
||||
| **Replication Status** | Whether link is healthy | 🟢 Replicating / 🔴 Down |
|
||||
| **Replication Slot Lag** | WAL retained because subscriber hasn't consumed it | MB |
|
||||
| **CPU Usage** | DB server CPU load | % |
|
||||
| **RAM Usage** | Server memory pressure | % |
|
||||
| **Disk Usage** | Remaining DB server disk | % |
|
||||
| **Disk I/O** | Storage read/write activity | MB/s |
|
||||
Reference in new issue
Block a user