feat(system-metrics,service-metrics,elastic): update elastic-client to version 8, improve parser logic to add more information, improve system monitor to add more information
This commit is contained in:
parent
6c098ed61c
commit
159df116c8
10 changed files with 587 additions and 190 deletions
27
config.go
27
config.go
|
|
@ -44,15 +44,24 @@ type ElasticsearchConfig struct {
|
|||
}
|
||||
|
||||
type SystemMetrics struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
CollectCPU bool `mapstructure:"collect_cpu"`
|
||||
CollectMemory bool `mapstructure:"collect_memory"`
|
||||
CollectDisk bool `mapstructure:"collect_disk"`
|
||||
CollectNetwork bool `mapstructure:"collect_network"`
|
||||
CollectProcesses bool `mapstructure:"collect_processes"`
|
||||
DiskPaths []string `mapstructure:"disk_paths"`
|
||||
NetworkInterfaces []string `mapstructure:"network_interfaces"`
|
||||
TopProcessesLimit int `mapstructure:"top_processes_limit"`
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
CollectCPU bool `mapstructure:"collect_cpu"`
|
||||
CollectMemory bool `mapstructure:"collect_memory"`
|
||||
CollectDisk bool `mapstructure:"collect_disk"`
|
||||
CollectNetwork bool `mapstructure:"collect_network"`
|
||||
CollectProcesses bool `mapstructure:"collect_processes"`
|
||||
DiskPaths []string `mapstructure:"disk_paths"`
|
||||
NetworkInterfaces []string `mapstructure:"network_interfaces"`
|
||||
TopProcessesLimit int `mapstructure:"top_processes_limit"`
|
||||
CollectNetworkConnections bool `mapstructure:"collect_network_connections"`
|
||||
CollectLoadAverage bool `mapstructure:"collect_load_average"`
|
||||
CollectTCPStats bool `mapstructure:"collect_tcp_stats"`
|
||||
CollectFileHandles bool `mapstructure:"collect_filehandles"`
|
||||
CollectDiskIO bool `mapstructure:"collect_disk_io"`
|
||||
CollectNetworkLatency bool `mapstructure:"collect_network_latency"`
|
||||
CollectBandwidthUsage bool `mapstructure:"collect_bandwidth_usage"`
|
||||
TransferPorts []int `mapstructure:"transfer_ports"`
|
||||
LatencyTestHosts []string `mapstructure:"latency_test_hosts"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue