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:
Patryk Hegenberg 2025-09-15 08:25:20 +02:00
parent 6c098ed61c
commit 159df116c8
10 changed files with 587 additions and 190 deletions

View file

@ -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 {