Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11ebbf3

Browse files
author
Dementii Priadko
committed
Efficiency improvements (Switch to Victoria Metrics, efficient pgss) + bug fixes and optimizations
1 parent4653e65 commit11ebbf3

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
grantselecton pg_stat_statements to postgres_ai_mon;
9999
grantselecton pg_stat_database to postgres_ai_mon;
100100
grantselecton pg_stat_user_tables to postgres_ai_mon;
101+
grantselecton pg_stat_user_indexes to postgres_ai_mon;
102+
grantselecton pg_index to postgres_ai_mon;
101103

102104
-- Create a public view for pg_statistic access (required for bloat metrics on user schemas)
103105
createviewpublic.pg_statisticas
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp