Skip to content

Commit c9e9531

Browse files
author
Dementii Priadko
committed
Merge branch '0.10-mr' into 'main'
Efficiency improvements (Switch to Victoria Metrics, efficient pgss) + bug fixes and optimizations See merge request postgres-ai/postgres_ai!63
2 parents 4653e65 + 11ebbf3 commit c9e9531

10 files changed

+1432
-1217
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Built for senior DBAs, SREs, and AI systems who need rapid root cause analysis a
1919
- **Dual-purpose architecture**: Built for both human experts and AI systems requiring structured performance data
2020
- **Comprehensive query analysis**: Complete `pg_stat_statements` metrics with historical trends and plan variations
2121
- **Active Session History**: Postgres's answer to Oracle ASH and AWS RDS Performance Insights
22-
- **Hybrid storage**: Prometheus for metrics, Postgres for query texts — best of both worlds
22+
- **Hybrid storage**: Victoria Metrics (Prometheus-compatible) for metrics, Postgres for query texts — best of both worlds
2323

2424
> 📖 **Read more**: [postgres_ai monitoring v0.7 announcement](https://postgres.ai/blog/20250722-postgres-ai-v0-7-expert-level-postgresql-monitoring) - detailed technical overview and architecture decisions.
2525
@@ -48,7 +48,7 @@ Experience the full monitoring solution: **https://demo.postgres.ai** (login: `d
4848
## 🏗️ Architecture
4949

5050
- **Collection**: pgwatch v3 (by Cybertec) for metrics gathering
51-
- **Storage**: Prometheus for time-series data + Postgres for query texts
51+
- **Storage**: Victoria Metrics for time-series data + Postgres for query texts
5252
- **Visualization**: Grafana with expert-designed dashboards
5353
- **Analysis**: Structured data output for AI system integration
5454

@@ -71,7 +71,7 @@ This monitoring solution exposes several ports that **MUST** be properly firewal
7171
- **Port 3000** (Grafana) - Contains sensitive database metrics and dashboards
7272
- **Port 58080** (PGWatch Postgres) - Database monitoring interface
7373
- **Port 58089** (PGWatch Prometheus) - Database monitoring interface
74-
- **Port 59090** (Prometheus) - Metrics storage and queries
74+
- **Port 59090** (Victoria Metrics) - Metrics storage and queries
7575
- **Port 59091** (PGWatch Prometheus endpoint) - Metrics collection
7676
- **Port 55000** (Flask API) - Backend API service
7777
- **Port 55432** (Demo DB) - When using `--demo` option
@@ -98,6 +98,8 @@ grant pg_monitor to postgres_ai_mon;
9898
grant select on pg_stat_statements to postgres_ai_mon;
9999
grant select on pg_stat_database to postgres_ai_mon;
100100
grant select on pg_stat_user_tables to postgres_ai_mon;
101+
grant select on pg_stat_user_indexes to postgres_ai_mon;
102+
grant select on pg_index to postgres_ai_mon;
101103

102104
-- Create a public view for pg_statistic access (required for bloat metrics on user schemas)
103105
create view public.pg_statistic as
@@ -195,7 +197,7 @@ After running quickstart:
195197
Technical URLs (for advanced users):
196198
- **Demo DB**: postgresql://postgres:postgres@localhost:55432/target_database
197199
- **Monitoring**: http://localhost:58080 (PGWatch)
198-
- **Metrics**: http://localhost:59090 (Prometheus)
200+
- **Metrics**: http://localhost:59090 (Victoria Metrics)
199201

200202
## 📖 Help
201203

0 commit comments

Comments
 (0)