config

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServer

type APIServer struct {
	Port int
}

type CollectManager

type CollectManager struct {
	CollectorIP       string `json:"collector_ip" mapstructure:"collector_ip"`
	CollectorPort     int    `json:"collector_port" mapstructure:"collector_port"`
	CollectorGroupCnt int    `json:"collectorGroup_count" mapstructure:"collector_group_count"`
}

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 *Config) GetInfluxDBConfig() InfluxDB

func (*Config) GetKafkaConfig

func (config *Config) GetKafkaConfig() Kafka

func (*Config) GetKapacitorConfig

func (config *Config) GetKapacitorConfig() Kapacitor

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

func (kafka Kafka) GetKafkaEndpointUrl() string

type Kapacitor

type Kapacitor struct {
	EndpointUrl string `json:"endpoint_url" mapstructure:"endpoint_url"`
}

func (Kapacitor) GetKapacitorEndpointUrl

func (kapacitor Kapacitor) GetKapacitorEndpointUrl() string

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"`         // 모니터링 콜렉터 수
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL