Commit 820d253
committed
fix: remove pg_stat_statements from Prometheus sink to prevent cardinality explosion
pg_stat_statements collected via pgwatch-prometheus was creating 30K+ series
in VictoriaMetrics (one per queryid × 16 counter fields), causing query timeouts
and excessive resource usage. This data is already handled by flask-pgss-api
via the Postgres sink, making the Prometheus collection redundant.
Changes:
- Remove pg_stat_statements from the 'full' preset in pgwatch-prometheus metrics
- Reduce pgwatch-prometheus CPU from 1.5 to 0.5 and RAM from 1024m to 512m
(pg_stat_statements was the main CPU driver)
- Update comments to document the architecture decision
https://claude.ai/code/session_01SzJxzZNQjDQphaHyaX3RU71 parent 1e82023 commit 820d253
2 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2532 | 2532 | | |
2533 | 2533 | | |
2534 | 2534 | | |
2535 | | - | |
| 2535 | + | |
| 2536 | + | |
2536 | 2537 | | |
2537 | 2538 | | |
2538 | 2539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | | - | |
143 | | - | |
| 143 | + | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
0 commit comments