Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectManager ¶
type CollectManager struct {
CollectorIP string `json:"collector_ip" mapstructure:"collector_ip"`
}
type Config ¶
type Config struct { InfluxDB InfluxDB CollectManager CollectManager APIServer APIServer Monitoring Monitoring Kapacitor Kapacitor Kafka Kafka }
func GetDefaultConfig ¶
func GetDefaultConfig() *Config
func GetInstance ¶
func GetInstance() *Config
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 GrpcConfig ¶ added in v0.4.2
type GrpcConfig struct {
GrpcServer GrpcServer
}
func GetGrpcInstance ¶ added in v0.4.2
func GetGrpcInstance() *GrpcConfig
type GrpcServer ¶
type InfluxDB ¶
type InfluxDB struct { EndpointUrl string `json:"endpoint_url" mapstructure:"endpoint_url"` CustomPort int `json:"custom_port" mapstructure:"custom_port"` Database string UserName string `json:"user_name" mapstructure:"user_name"` Password string RetentionPolicyDuration string `json:"rpDuration" mapstructure:"rpDuration"` }
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"` DeployType string `json:"deploy_type" mapstructure:"deploy_type"` }
Click to show internal directories.
Click to hide internal directories.