Skip to content

Commit 487e1bf

Browse files
committed
gather additional Postgres data points
We want to gather additional Postgres data points like disk free, disk usage, and the count of *.ready files. This aids in troubleshooting clusters.
1 parent 74ccc5c commit 487e1bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/cmd/export.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,9 @@ func gatherPostgresLogsAndConfigs(ctx context.Context,
12281228

12291229
commands := []Command{
12301230
{path: "pg_controldata", description: "pg_controldata"},
1231+
{path: "df -h /pgdata", description: "disk free"},
1232+
{path: "du -h /pgdata", description: "disk usage"},
1233+
{path: "ls /pgdata/*/archive_status/*.ready | wc -l", description: "Archive Ready File Count"},
12311234
}
12321235

12331236
var buf bytes.Buffer

0 commit comments

Comments
 (0)