config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 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 Config

type Config struct {
	InfluxDB   InfluxDB
	Kapacitor  Kapacitor
	Kafka      Kafka
	Dragonfly  Dragonfly
	Monitoring Monitoring
}

func GetDefaultConfig

func GetDefaultConfig() *Config

func GetInstance

func GetInstance() *Config

func (*Config) GetMonConfig added in v0.3.5

func (config *Config) GetMonConfig() Monitoring

func (*Config) SetMonConfig

func (config *Config) SetMonConfig(newMonConfig Monitoring)

type Dragonfly added in v0.4.4

type Dragonfly struct {
	DragonflyIP string `json:"dragonfly_ip" mapstructure:"dragonfly_ip"`
	Port        int    `json:"port" mapstructure:"port"`
	HelmPort    int    `json:"helm_port" mapstructure:"helm_port"`
}

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 GrpcServer struct {
	Ip   string
	Port int
}

type InfluxDB

type InfluxDB struct {
	EndpointUrl             string `json:"endpoint_url" mapstructure:"endpoint_url"`
	HelmPort                int    `json:"helm_port" mapstructure:"helm_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"`
	HelmPort    int    `json:"helm_port" mapstructure:"helm_port"`
}

type Kapacitor

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

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"`
}

Jump to

Keyboard shortcuts

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