config

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent added in v0.5.2

type Agent struct {
	ServiceAccount string        `json:"mck8s_serviceaccount" mapstructure:"mck8s_serviceaccount"` // MCK8S 에이전트 클러스터 시스템 계정
	Namespace      string        `json:"mck8s_namespace" mapstructure:"mck8s_namespace"`           // MCK8S 에이전트 클러스터 네임스페이스
	Image          string        `json:"image" mapstructure:"image"`
	Timeout        time.Duration `json:"timeout" mapstructure:"timeout"`
}

type Config

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"`
	HelmNamespace string `json:"helm_namespace" mapstructure:"helm_namespace"`
}

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 {
	MCISAgentInterval       int    `json:"mcis_agent_interval" mapstructure:"mcis_agent_interval"`           // 모니터링 에이전트 수집주기
	MCK8SAgentInterval      int    `json:"mck8s_agent_interval" mapstructure:"mck8s_agent_interval"`         // 모니터링 에이전트 수집주기
	MCISCollectorInterval   int    `json:"mcis_collector_interval" mapstructure:"mcis_collector_interval"`   // MCIS 모니터링 콜렉터 Aggregate 주기
	MCK8SCollectorInterval  int    `json:"mck8s_collector_interval" mapstructure:"mck8s_collector_interval"` // MCK8S 모니터링 콜렉터 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