Documentation ¶
Index ¶
- Variables
- type Config
- type ResourceClusterAgentConfig
- type ResourceClusterApiConfig
- type ResourceClusterConfig
- type ResourceComputeConfig
- type ResourceComputeExConfig
- type ResourceConfig
- type ResourceControllerConfig
- type ResourceLogCheckConfig
- type ResourceLogConfig
- type ResourceMetricsConfig
- type ResourceMetricsSystemCheckIoDelayConfig
- type ResourceMetricsSystemConfig
- type ResourceMetricsSystemCpuCheckProcsBlockedConfig
- type ResourceMetricsSystemCpuCheckProcsRunningConfig
- type ResourceMetricsSystemCpuConfig
- type ResourceMetricsSystemDiskConfig
- type ResourceMetricsSystemDiskFsCheckFreeConfig
- type ResourceMetricsSystemDiskFsConfig
- type ResourceMetricsSystemLoginCheckLoginConfig
- type ResourceMetricsSystemLoginConfig
- type ResourceMetricsSystemMemBuddyinfoCheckPagesConfig
- type ResourceMetricsSystemMemBuddyinfoConfig
- type ResourceMetricsSystemMemCheckAvailableConfig
- type ResourceMetricsSystemMemCheckPgscanConfig
- type ResourceMetricsSystemMemConfig
- type ResourceMetricsSystemNetCheckTcpErrorsConfig
- type ResourceMetricsSystemNetConfig
- type ResourceMetricsSystemNetDevCheckBytesConfig
- type ResourceMetricsSystemNetDevCheckErrorsConfig
- type ResourceMetricsSystemNetDevConfig
- type ResourceMetricsSystemProcCheckProcConfig
- type ResourceMetricsSystemProcCheckProcsStatusConfig
- type ResourceMetricsSystemProcConfig
- type ResourceMetricsSystemUptimeCheckBootConfig
- type ResourceMetricsSystemUptimeConfig
- type ResourceProcCheckConfig
- type TimeSeriesDatabaseConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseConf = base_config.Config{}
View Source
var MainConf = Config{ Resource: ResourceConfig{ Api: base_config.AppConfig{ Name: "ResourceApi", NodeServiceDownTimeDuration: 60, }, Controller: ResourceControllerConfig{ AppConfig: base_config.AppConfig{ Name: "ReosurceController", }, SyncRegionServiceTimeout: 10, }, }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Resource ResourceConfig
}
type ResourceClusterAgentConfig ¶
type ResourceClusterAgentConfig struct { base_config.AppConfig Compute ResourceComputeConfig ReportProject string LogMap map[string]ResourceLogConfig Metrics ResourceMetricsConfig }
type ResourceClusterApiConfig ¶
type ResourceClusterApiConfig struct { base_config.AppConfig RegionName string }
type ResourceClusterConfig ¶
type ResourceClusterConfig struct { Region string Datacenter string Kind string Weight int DomainSuffix string TimeSeriesDatabase TimeSeriesDatabaseConfig Api base_config.AppConfig Controller base_config.AppConfig Agent ResourceClusterAgentConfig }
type ResourceComputeConfig ¶
type ResourceComputeConfig struct { Enable bool ConfirmRetryCount int ConfirmRetryInterval int // ConfigDir is directory for Compute config ConfigDir string // VarDir is directory for Compute data VarDir string // VmsDir is directory for VM data // Default is $VarDir/vms VmsDir string // Default is $VarDir/images ImagesDir string // VmNetnsGateway is Gateway in netns on host VmNetnsGatewayStartIp string VmNetnsGatewayEndIp string // VmNetnsServiceIp is ServiceIp for VM in netns on host // NetnsService serve convenient services for VM VmNetnsServiceIp string // VmNetnsIp is assigned vm, this ip is available in netns on host // VmNetnsIp range is defined VmNetnsStartIp, and VmNetnsEndIp VmNetnsStartIp string VmNetnsEndIp string // Driver is provider for VM. // Available providers are mock, qemu Driver string }
ResourceComputeConfig is config for compute
type ResourceComputeExConfig ¶
type ResourceComputeExConfig struct { ResourceComputeConfig ConfirmRetryInterval time.Duration VmNetnsGatewayStartIp net.IP VmNetnsGatewayEndIp net.IP VmNetnsServiceIp net.IP VmNetnsStartIp net.IP VmNetnsEndIp net.IP VmsDir string ImagesDir string UserdataTmpl string VmServiceTmpl string VmServiceShTmpl string SystemdDir string }
ResourceComputeExConfig is config for ComputeDriver This is auto generated from ResourceComputeConfig
type ResourceConfig ¶
type ResourceConfig struct { Api base_config.AppConfig Controller ResourceControllerConfig ClusterName string ClusterMap map[string]ResourceClusterConfig }
type ResourceControllerConfig ¶
type ResourceControllerConfig struct { base_config.AppConfig SyncRegionServiceTimeout int }
type ResourceLogCheckConfig ¶
type ResourceLogConfig ¶
type ResourceMetricsConfig ¶
type ResourceMetricsConfig struct {
System ResourceMetricsSystemConfig
}
type ResourceMetricsSystemConfig ¶
type ResourceMetricsSystemConfig struct { Enable bool EnableLogin bool EnableCpu bool EnableMemory bool EnableProc bool CacheLength int Uptime ResourceMetricsSystemUptimeConfig Login ResourceMetricsSystemLoginConfig Proc ResourceMetricsSystemProcConfig Cpu ResourceMetricsSystemCpuConfig Mem ResourceMetricsSystemMemConfig MemBuddyinfo ResourceMetricsSystemMemBuddyinfoConfig Disk ResourceMetricsSystemDiskConfig DiskFs ResourceMetricsSystemDiskFsConfig Net ResourceMetricsSystemNetConfig NetDev ResourceMetricsSystemNetDevConfig }
type ResourceMetricsSystemCpuConfig ¶
type ResourceMetricsSystemCpuConfig struct { Enable bool CheckProcsRunning ResourceMetricsSystemCpuCheckProcsRunningConfig CheckProcsBlocked ResourceMetricsSystemCpuCheckProcsBlockedConfig }
type ResourceMetricsSystemDiskConfig ¶
type ResourceMetricsSystemDiskConfig struct { Enable bool CheckIoDelay ResourceMetricsSystemCheckIoDelayConfig }
type ResourceMetricsSystemDiskFsConfig ¶
type ResourceMetricsSystemDiskFsConfig struct { Enable bool CheckFree ResourceMetricsSystemDiskFsCheckFreeConfig }
type ResourceMetricsSystemLoginConfig ¶
type ResourceMetricsSystemLoginConfig struct { Enable bool CheckLogin ResourceMetricsSystemLoginCheckLoginConfig }
type ResourceMetricsSystemMemBuddyinfoConfig ¶
type ResourceMetricsSystemMemBuddyinfoConfig struct { Enable bool CheckPages ResourceMetricsSystemMemBuddyinfoCheckPagesConfig }
type ResourceMetricsSystemMemConfig ¶
type ResourceMetricsSystemMemConfig struct { Enable bool CheckAvailable ResourceMetricsSystemMemCheckAvailableConfig CheckPgscan ResourceMetricsSystemMemCheckPgscanConfig }
type ResourceMetricsSystemNetConfig ¶
type ResourceMetricsSystemNetConfig struct { Enable bool CheckTcpErrors ResourceMetricsSystemNetCheckTcpErrorsConfig }
type ResourceMetricsSystemNetDevConfig ¶
type ResourceMetricsSystemNetDevConfig struct { Enable bool StatFilters []string CheckFilters []string CheckBytes ResourceMetricsSystemNetDevCheckBytesConfig CheckErrors ResourceMetricsSystemNetDevCheckErrorsConfig }
type ResourceMetricsSystemProcConfig ¶
type ResourceMetricsSystemProcConfig struct { Enable bool CheckProcsStatus ResourceMetricsSystemProcCheckProcsStatusConfig CheckProcMap map[string]ResourceMetricsSystemProcCheckProcConfig }
type ResourceMetricsSystemUptimeConfig ¶
type ResourceMetricsSystemUptimeConfig struct { Enable bool CheckBoot ResourceMetricsSystemUptimeCheckBootConfig }
type ResourceProcCheckConfig ¶
Click to show internal directories.
Click to hide internal directories.