Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
NodeID string `yaml:"node_id"`
ServerAddress string `yaml:"server_address"`
ReconnectBackoff time.Duration `yaml:"reconnect_backoff"`
SendQueueSize int `yaml:"send_queue_size"`
ControlTimeout time.Duration `yaml:"control_timeout"`
Report ReportConfig `yaml:"report"`
Log LogConfig `yaml:"log"`
TLS TLSConfig `yaml:"tls"`
}
func DefaultAgentConfig ¶
func DefaultAgentConfig() AgentConfig
func LoadAgentConfig ¶
func LoadAgentConfig(path string) (AgentConfig, error)
type ReportConfig ¶
type ServerConfig ¶
type ServerConfig struct {
GRPCListen string `yaml:"grpc_listen"`
HTTPListen string `yaml:"http_listen"`
Retention time.Duration `yaml:"retention"`
MaxSamplesPerNode int `yaml:"max_samples_per_node"`
IngestQueueSize int `yaml:"ingest_queue_size"`
PerNodeQueueSize int `yaml:"per_node_queue_size"`
CommandTimeout time.Duration `yaml:"command_timeout"`
HTTPReadTimeout time.Duration `yaml:"http_read_timeout"`
HTTPWriteTimeout time.Duration `yaml:"http_write_timeout"`
HTTPIdleTimeout time.Duration `yaml:"http_idle_timeout"`
Log LogConfig `yaml:"log"`
TLS TLSConfig `yaml:"tls"`
}
func DefaultServerConfig ¶
func DefaultServerConfig() ServerConfig
func LoadServerConfig ¶
func LoadServerConfig(path string) (ServerConfig, error)
Click to show internal directories.
Click to hide internal directories.