Skip to content

Commit 8e24657

Browse files
authored
updates to support export (#135)
* add ResourceQuotas We want to gather ResourceQuotas as part of the information gathered by the Support Export. * 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 717edc0 commit 8e24657

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/cmd/export.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ var otherNamespacedResources = []schema.GroupVersionResource{{
160160
Group: corev1.SchemeGroupVersion.Group,
161161
Version: corev1.SchemeGroupVersion.Version,
162162
Resource: "limitranges",
163+
}, {
164+
Group: corev1.SchemeGroupVersion.Group,
165+
Version: corev1.SchemeGroupVersion.Version,
166+
Resource: "resourcequotas",
163167
}}
164168

165169
// newSupportCommand returns the support subcommand of the PGO plugin.
@@ -1224,6 +1228,9 @@ func gatherPostgresLogsAndConfigs(ctx context.Context,
12241228

12251229
commands := []Command{
12261230
{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"},
12271234
}
12281235

12291236
var buf bytes.Buffer

0 commit comments

Comments
 (0)