From cd99831abce39c10c573edbe51eac05b6022d802 Mon Sep 17 00:00:00 2001 From: George Date: Tue, 22 Sep 2026 15:45:48 +0530 Subject: [PATCH] feat: --Added Features in feat.txt --- feat.txt | 13 +++++++++++++ main.py | 12 +++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/feat.txt b/feat.txt index b7706ff..5f7e946 100644 --- a/feat.txt +++ b/feat.txt @@ -37,3 +37,16 @@ Using my uploaded photo, show me what I would have looked like around 1985. Pres +| Tool | Best for | What it monitors | +| ---------------------- | ------------------------------ | ------------------------------------------------------------ | +| **pgAdmin** | PostgreSQL beginners | Sessions, queries, locks, database size, activity | +| **pg_stat_activity** | PostgreSQL built-in monitoring | Active queries, idle connections, blocked sessions | +| **pg_stat_statements** | SQL performance | Slow queries, execution count, execution time | +| **Prometheus** | Metrics collection | CPU, memory, connections, transactions, replication metrics | +| **Grafana** | Dashboards | Visualizes metrics collected by Prometheus | +| **postgres_exporter** | PostgreSQL → Prometheus | DB connections, locks, transactions, cache, WAL, replication | +| **pgwatch2** | PostgreSQL monitoring | PostgreSQL-specific metrics and dashboards | +| **Percona PMM** | PostgreSQL/MySQL | Query performance, server health, DB metrics | +| **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 | diff --git a/main.py b/main.py index 54a86ac..8445dde 100644 --- a/main.py +++ b/main.py @@ -93,7 +93,7 @@ def root(): #{ # "host": "172.16.10.178", -# "node_name = "node3", +# "node_name :"node3", # "port": 5444, # "dbname": "postgres", # "user": "postgres", @@ -198,6 +198,16 @@ def get_replication_health(data: NodeStatusRequest): conn.close() + +# { +# "node_name": "node3", +# "host": "172.16.10.178", +# "port": 5444, +# "dbname": "postgres", +# "user": "postgres", +# "password": "postgres" +# } + @app.websocket("/ws/node/replication-health") async def replication_monitor(websocket: WebSocket): await websocket.accept()