mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-18 18:49:23 +08:00
参考了nezha-agent。实现了Linux服务器下NVIDIA显卡的监控。 通过 --gpu 参数启用显卡监控功能。 支持多显卡,显卡使用率,显存使用率监控 实现了AMD显卡的监控,但是未经过测试
24 lines
578 B
Go
24 lines
578 B
Go
package flags
|
|
|
|
var (
|
|
AutoDiscoveryKey string
|
|
DisableAutoUpdate bool
|
|
DisableWebSsh bool
|
|
MemoryModeAvailable bool
|
|
Token string
|
|
Endpoint string
|
|
Interval float64
|
|
IgnoreUnsafeCert bool
|
|
MaxRetries int
|
|
ReconnectInterval int
|
|
InfoReportInterval int
|
|
IncludeNics string
|
|
ExcludeNics string
|
|
IncludeMountpoints string
|
|
MonthRotate int
|
|
CFAccessClientID string
|
|
CFAccessClientSecret string
|
|
MemoryIncludeCache bool
|
|
EnableGPU bool // 启用详细GPU监控
|
|
)
|