mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-11 21:50:25 +08:00
## Summary This PR will add a new endpoint, "diag/system" to the metrics server that collects system information from different operating systems. Closes TUN-8731
10 lines
300 B
Go
10 lines
300 B
Go
package diagnostic
|
|
|
|
import "time"
|
|
|
|
const (
|
|
defaultCollectorTimeout = time.Second * 10 // This const define the timeout value of a collector operation.
|
|
collectorField = "collector" // used for logging purposes
|
|
systemCollectorName = "system" // used for logging purposes
|
|
)
|