Documentation
¶
Index ¶
- type APIServer
- type CollectManager
- type Config
- func (config *Config) GetGrpcConfig() GrpcServer
- func (config *Config) GetInfluxDBConfig() InfluxDB
- func (config *Config) GetKafkaConfig() Kafka
- func (config *Config) GetKapacitorConfig() Kapacitor
- func (config *Config) GetMonConfig() Monitoring
- func (config *Config) SetMonConfig(newMonConfig Monitoring)
- type GrpcServer
- type InfluxDB
- type Kafka
- type Kapacitor
- type Monitoring
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) GetMonConfig ¶ added in v0.3.5
func (config *Config) GetMonConfig() Monitoring
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
RetentionPolicyDuration string `json:"rpDuration" mapstructure:"rpDuration"`
}
type Kafka ¶
type Kafka struct {
EndpointUrl string `json:"endpoint_url" mapstructure:"endpoint_url"`
ExternalIP string `json:"external_ip" mapstructure:"external_ip"`
DeployType string `json:"deploy_type" mapstructure:"deploy_type"`
HelmExternalPort int `json:"helm_external_port" mapstructure:"helm_external_port"`
ComposeExternalPort 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"` // 모니터링 콜렉터 수
DefaultPolicy string `json:"default_policy" mapstructure:"default_policy"` // 모니터링 기본 정책
PullerInterval int `json:"puller_interval" mapstructure:"puller_interval"` // 모니터링 puller 실행 주기
PullerAggregateInterval int `json:"puller_aggregate_interval" mapstructure:"puller_aggregate_interval"`
AggregateType string `json:"aggregate_type" mapstructure:"aggregate_type"`
}
Click to show internal directories.
Click to hide internal directories.