From 74ccc5c66c3ab63842784f1b81f6823db97d255b Mon Sep 17 00:00:00 2001 From: Philip Hurst Date: Tue, 5 Aug 2025 14:22:01 +0000 Subject: [PATCH 1/2] add ResourceQuotas We want to gather ResourceQuotas as part of the information gathered by the Support Export. --- internal/cmd/export.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/cmd/export.go b/internal/cmd/export.go index 56d7aa8..2a70bc0 100644 --- a/internal/cmd/export.go +++ b/internal/cmd/export.go @@ -160,6 +160,10 @@ var otherNamespacedResources = []schema.GroupVersionResource{{ Group: corev1.SchemeGroupVersion.Group, Version: corev1.SchemeGroupVersion.Version, Resource: "limitranges", +}, { + Group: corev1.SchemeGroupVersion.Group, + Version: corev1.SchemeGroupVersion.Version, + Resource: "resourcequotas", }} // newSupportCommand returns the support subcommand of the PGO plugin. From 487e1bf2a6bc200834c64a1611564af372d5b4dd Mon Sep 17 00:00:00 2001 From: Philip Hurst Date: Tue, 5 Aug 2025 14:23:26 +0000 Subject: [PATCH 2/2] 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. --- internal/cmd/export.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cmd/export.go b/internal/cmd/export.go index 2a70bc0..abfad52 100644 --- a/internal/cmd/export.go +++ b/internal/cmd/export.go @@ -1228,6 +1228,9 @@ func gatherPostgresLogsAndConfigs(ctx context.Context, commands := []Command{ {path: "pg_controldata", description: "pg_controldata"}, + {path: "df -h /pgdata", description: "disk free"}, + {path: "du -h /pgdata", description: "disk usage"}, + {path: "ls /pgdata/*/archive_status/*.ready | wc -l", description: "Archive Ready File Count"}, } var buf bytes.Buffer