Skip to content

Commit b4e3ed2

Browse files
Removes silent failing (#1877)
* preserves stdout and stderr from collectors * Delete eliminate-silent-failures.md * Update host_kernel_modules_test.go * added error logs when a collector fails to start * Update host_filesystem_performance_linux.go * fixed error saving logic inconsistency * Update collect.go
1 parent c67775c commit b4e3ed2

File tree

11 files changed

+1144
-41
lines changed

11 files changed

+1144
-41
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
apiVersion: troubleshoot.sh/v1beta2
2+
kind: SupportBundle
3+
metadata:
4+
name: all-collectors-test
5+
spec:
6+
hostCollectors:
7+
# System Info Collectors
8+
- cpu: {}
9+
- memory: {}
10+
- time: {}
11+
- hostOS: {}
12+
- ipv4Interfaces: {}
13+
- blockDevices: {}
14+
- hostServices: {}
15+
16+
# Kernel Collectors
17+
- kernelModules: {}
18+
- kernelConfigs: {}
19+
- sysctl: {}
20+
- cgroups: {}
21+
22+
# System Packages
23+
- systemPackages: {}
24+
25+
# Journald Logs
26+
- journald:
27+
collectorName: journald-system
28+
system: true
29+
- journald:
30+
collectorName: journald-dmesg
31+
dmesg: true
32+
33+
# Disk Usage
34+
- diskUsage:
35+
collectorName: root
36+
path: /
37+
- diskUsage:
38+
collectorName: tmp
39+
path: /tmp
40+
41+
# Filesystem Performance (requires sudo)
42+
- filesystemPerformance:
43+
collectorName: filesystem-latency
44+
timeout: 1m
45+
directory: /var/tmp
46+
fileSize: 10Mi
47+
operationSizeBytes: 2300
48+
49+
# Certificate
50+
- certificate:
51+
collectorName: test-cert
52+
certificatePath: /etc/ssl/certs/ca-certificates.crt
53+
54+
# Network Tests
55+
- tcpPortStatus:
56+
collectorName: ssh-port
57+
port: 22
58+
- tcpConnect:
59+
collectorName: localhost-ssh
60+
address: 127.0.0.1:22
61+
- http:
62+
collectorName: google
63+
get:
64+
url: https://www.google.com
65+
- dns:
66+
collectorName: dns-google
67+
hostname: google.com
68+
69+
# Custom Commands
70+
- run:
71+
collectorName: uname
72+
command: "uname"
73+
args: ["-a"]
74+
- run:
75+
collectorName: df
76+
command: "df"
77+
args: ["-h"]
78+
79+
# Copy Files
80+
- copy:
81+
collectorName: hosts-file
82+
path: /etc/hosts
83+
- copy:
84+
collectorName: resolv-conf
85+
path: /etc/resolv.conf

0 commit comments

Comments
 (0)