config

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertConfig

type CertConfig struct {
	CAFile     string
	CertFile   string
	KeyFile    string
	CertPasswd string
	IsSSL      bool
}

CertConfig configuration of Cert

type Config

type Config struct {
	conf.FileConfig
	conf.CertConfig
	conf.MetricConfig
	conf.LogConfig
	conf.ProcessConfig
	conf.ZkConfig
	conf.LocalConfig
	RunMode RunType `` //no lint
	/* 163-byte string literal not displayed */
	ExporterType          int                  `json:"exporter_type" value:"3" usage:"the type of exporter"`
	ZKServerAddress       string               // discovery
	MetricClientCertDir   string               // client cert directory of the metric service client
	MetricClientCert      *CertConfig          // cert of the  metric service client
	ExporterClientCertDir string               // client cert directory of the exporter client
	ExporterClientCert    *CertConfig          // cert of the exporter client
	Rd                    *rdiscover.RDiscover // rd
}

Config Exporter服务器配置

func ParseConfig

func ParseConfig() *Config

ParseConfig 解析配置

type RunType

type RunType string

RunType collector running mode

const (
	//ContainerType for Container mode
	ContainerType RunType = "container"
	//TraditionalType for process mode
	TraditionalType RunType = "traditional"
)

Jump to

Keyboard shortcuts

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