@indiekitai/pg-dash 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -52,6 +52,24 @@ npx @indiekitai/pg-dash postgres://user:pass@host/db
52
52
  - Webhook notifications
53
53
  - Alert history
54
54
 
55
+ ### 🔍 EXPLAIN Plan Visualization
56
+ - Click any query in the Queries tab to see its execution plan
57
+ - Tree view of the EXPLAIN output for easy analysis
58
+
59
+ ### 📈 Query Time-Series Trends
60
+ - Trends tab with historical pg_stat_statements snapshots
61
+ - Track query performance over time
62
+
63
+ ### 💾 Disk Space Monitoring
64
+ - Disk tab with per-table size breakdown
65
+ - Growth prediction using linear regression
66
+ - "Days until disk full" estimate
67
+
68
+ ### 📣 Slack & Discord Notifications
69
+ - Webhook notifications for alerts
70
+ - Auto-detects Slack vs Discord webhook URLs
71
+ - Configure via `--slack-webhook` or `--discord-webhook`
72
+
55
73
  ### 🤖 MCP Server
56
74
  - 8 tools for AI agent integration
57
75
  - `pg-dash-mcp postgres://...` — works with Claude, Cursor, etc.
@@ -108,6 +126,9 @@ Options:
108
126
  -i, --interval <sec> Collection interval (default: 30)
109
127
  --threshold <score> Score threshold for check command (default: 70)
110
128
  -f, --format <fmt> Output format: text|json (default: text)
129
+ --query-stats-interval <sec> Query stats snapshot interval (default: 300)
130
+ --slack-webhook <url> Slack webhook URL for alert notifications
131
+ --discord-webhook <url> Discord webhook URL for alert notifications
111
132
  -v, --version Show version
112
133
  ```
113
134
 
package/README.zh-CN.md CHANGED
@@ -52,6 +52,24 @@ npx @indiekitai/pg-dash postgres://user:pass@host/db
52
52
  - Webhook 通知
53
53
  - 告警历史
54
54
 
55
+ ### 🔍 EXPLAIN 执行计划可视化
56
+ - 在 Queries 标签页点击任意查询查看执行计划
57
+ - 树形展示 EXPLAIN 输出,便于分析
58
+
59
+ ### 📈 查询趋势分析
60
+ - Trends 标签页展示 pg_stat_statements 历史快照
61
+ - 追踪查询性能随时间的变化
62
+
63
+ ### 💾 磁盘空间监控
64
+ - Disk 标签页展示每张表的大小分布
65
+ - 基于线性回归的增长预测
66
+ - "距磁盘满还有多少天" 估算
67
+
68
+ ### 📣 Slack 和 Discord 通知
69
+ - 告警 Webhook 通知
70
+ - 自动识别 Slack / Discord webhook URL
71
+ - 通过 `--slack-webhook` 或 `--discord-webhook` 配置
72
+
55
73
  ### 🤖 MCP Server
56
74
  - 8 个工具,支持 AI Agent 集成
57
75
  - `pg-dash-mcp postgres://...` —— 可配合 Claude、Cursor 等使用
@@ -108,6 +126,9 @@ Options:
108
126
  -i, --interval <sec> 采集间隔(默认:30)
109
127
  --threshold <score> check 命令的分数阈值(默认:70)
110
128
  -f, --format <fmt> 输出格式:text|json(默认:text)
129
+ --query-stats-interval <sec> 查询统计快照间隔(默认:300)
130
+ --slack-webhook <url> Slack webhook URL,用于告警通知
131
+ --discord-webhook <url> Discord webhook URL,用于告警通知
111
132
  -v, --version 显示版本
112
133
  ```
113
134