TUN-8725: implement diagnostic procedure

## Summary
Add a function that orchestrates the diagnostic jobs producing a zip file at the end.

Closes TUN-8725
This commit is contained in:
Luis Neto
2024-12-04 03:37:57 -08:00
parent 451f98e1d1
commit 7bd86762a7
8 changed files with 457 additions and 11 deletions

View File

@@ -22,4 +22,12 @@ const (
goroutineDumpEndpoint = "debug/pprof/goroutine"
metricsEndpoint = "metrics"
tunnelConfigurationEndpoint = "/config"
// Base for filenames of the diagnostic procedure
systemInformationBaseName = "systeminformation.json"
metricsBaseName = "metrics.txt"
zipName = "cloudflared-diag"
heapPprofBaseName = "heap.pprof"
goroutinePprofBaseName = "goroutine.pprof"
networkBaseName = "network.json"
tunnelStateBaseName = "tunnelstate.json"
)