Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectManager ¶
type Config ¶
type Config struct { InfluxDB InfluxDB CollectManager CollectManager APIServer APIServer Monitoring Monitoring Kapacitor Kapacitor Kafka Kafka GrpcServer GrpcServer }
func GetDefaultConfig ¶
func GetDefaultConfig() *Config
func GetInstance ¶
func GetInstance() *Config
func (*Config) GetGrpcConfig ¶
func (config *Config) GetGrpcConfig() GrpcServer
func (*Config) GetInfluxDBConfig ¶
func (*Config) GetKafkaConfig ¶
func (*Config) GetKapacitorConfig ¶
func (*Config) SetMonConfig ¶
func (config *Config) SetMonConfig(newMonConfig Monitoring)
type GrpcServer ¶
type GrpcServer struct {
Port int
}
type InfluxDB ¶
type InfluxDB struct { EndpointUrl string `json:"endpoint_url" mapstructure:"endpoint_url"` InternalPort int `json:"internal_port" mapstructure:"internal_port"` ExternalPort int `json:"external_port" mapstructure:"external_port"` Database string UserName string `json:"user_name" mapstructure:"user_name"` Password string }
type Kafka ¶
type Kafka struct { EndpointUrl string `json:"endpoint_url" mapstructure:"endpoint_url"` ExternalIP string `json:"external_ip" mapstructure:"external_ip"` Deploy_Type string `json:"deploy_type" mapstructure:"deploy_type"` Helm_External_Port int `json:"helm_external_port" mapstructure:"helm_external_port"` Compose_External_Port int `json:"compose_external_port" mapstructure:"compose_external_port"` InternalPort int `json:"internal_port" mapstructure:"internal_port"` }
func (Kafka) GetKafkaEndpointUrl ¶
type Kapacitor ¶
type Kapacitor struct {
EndpointUrl string `json:"endpoint_url" mapstructure:"endpoint_url"`
}
func (Kapacitor) GetKapacitorEndpointUrl ¶
type Monitoring ¶
type Monitoring struct { AgentInterval int `json:"agent_interval" mapstructure:"agent_interval"` // 모니터링 에이전트 수집주기 CollectorInterval int `json:"collector_interval" mapstructure:"collector_interval"` // 모니터링 콜렉터 Aggregate 주기 MonitoringPolicy string `json:"monitoring_policy" mapstructure:"monitoring_policy"` // 모니터링 콜렉터 정책 MaxHostCount int `json:"max_host_count" mapstructure:"max_host_count"` // 모니터링 콜렉터 수 }
Click to show internal directories.
Click to hide internal directories.