Documentation ¶
Index ¶
- Variables
- func GetOutboundIP() net.IP
- func InitReader() error
- func MustLoad(fpaths ...string)
- type Alerting
- type CallPlugin
- type CallScript
- type Config
- type HeartbeatConfig
- type Ibex
- type NoData
- type PromClient
- type PromOption
- type PromOptionsStruct
- type RedisPub
- type SMTPConfig
- type Webhook
- type WriterGlobalOpt
- type WriterOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
C = new(Config)
)
View Source
var PromOptions = &PromOptionsStruct{Data: make(map[string]PromOption)}
Data key is cluster name
Functions ¶
func InitReader ¶ added in v5.11.0
func InitReader() error
Types ¶
type Alerting ¶
type Alerting struct { TemplatesDir string NotifyConcurrency int NotifyBuiltinChannels []string CallScript CallScript CallPlugin CallPlugin RedisPub RedisPub Webhook Webhook }
type CallPlugin ¶ added in v5.5.0
type CallScript ¶ added in v5.4.0
type Config ¶
type Config struct { RunMode string ClusterName string BusiGroupLabelKey string EngineDelay int64 DisableUsageReport bool ReaderFrom string ForceUseServerTS bool Log logx.Config HTTP httpx.Config BasicAuth gin.Accounts SMTP SMTPConfig Heartbeat HeartbeatConfig Alerting Alerting NoData NoData Redis storage.RedisConfig DB ormx.DBConfig WriterOpt WriterGlobalOpt Writers []WriterOptions Reader PromOption Ibex Ibex }
func (*Config) IsDebugMode ¶
type HeartbeatConfig ¶
type PromClient ¶ added in v5.11.0
var ReaderClient *PromClient = &PromClient{}
func (*PromClient) GetCli ¶ added in v5.11.0
func (pc *PromClient) GetCli() prom.API
func (*PromClient) GetClusterName ¶ added in v5.11.0
func (pc *PromClient) GetClusterName() string
func (*PromClient) IsNil ¶ added in v5.11.0
func (pc *PromClient) IsNil() bool
func (*PromClient) Reset ¶ added in v5.11.0
func (pc *PromClient) Reset()
type PromOption ¶ added in v5.11.0
type PromOption struct { Url string BasicAuthUser string BasicAuthPass string Timeout int64 DialTimeout int64 MaxIdleConnsPerHost int Headers []string }
func (*PromOption) Equal ¶ added in v5.11.0
func (po *PromOption) Equal(target PromOption) bool
type PromOptionsStruct ¶ added in v5.11.0
type PromOptionsStruct struct { Data map[string]PromOption sync.RWMutex }
func (*PromOptionsStruct) Get ¶ added in v5.11.0
func (pos *PromOptionsStruct) Get(clusterName string) (PromOption, bool)
func (*PromOptionsStruct) Set ¶ added in v5.11.0
func (pos *PromOptionsStruct) Set(clusterName string, po PromOption)
func (*PromOptionsStruct) Sets ¶ added in v5.11.0
func (pos *PromOptionsStruct) Sets(clusterName string, po PromOption)
type SMTPConfig ¶ added in v5.4.0
type WriterGlobalOpt ¶ added in v5.9.2
type WriterOptions ¶ added in v5.9.2
type WriterOptions struct { Url string BasicAuthUser string BasicAuthPass string Timeout int64 DialTimeout int64 TLSHandshakeTimeout int64 ExpectContinueTimeout int64 IdleConnTimeout int64 KeepAlive int64 MaxConnsPerHost int MaxIdleConns int MaxIdleConnsPerHost int Headers []string WriteRelabels []*models.RelabelConfig }
Click to show internal directories.
Click to hide internal directories.