Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultESHostPort = "elasticsearch:20042" DefaultSyslogDirectory = "/var/log/deepflow-agent" )
View Source
const ( DEFAULT_SYNC_INTERVAL = 10 * time.Second DEFAULT_PUSH_INTERVAL = 2 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterConfig ¶
type AdapterConfig struct {
OrderingCacheSize uint32 `yaml:"ordering-cache-size"`
}
type Config ¶
type Config struct { Base *config.Config ESHostPorts []string `yaml:"es-host-port"` ESAuth ESAuth `yaml:"es-auth"` Adapter AdapterConfig `yaml:"adapter"` Labeler LabelerConfig `yaml:"labeler"` Queue QueueConfig `yaml:"queue"` RpcTimeout time.Duration `yaml:"rpc-timeout"` PCap PCapConfig `yaml:"pcap"` AgentLogToFile bool `yaml:"agent-log-to-file"` SyslogDirectory string `yaml:"syslog-directory"` ESSyslog bool `yaml:"es-syslog"` }
type ConfigSynchronizer ¶
type ConfigSynchronizer interface { Start() Stop() Register(Handler) }
type DropletConfig ¶
type DropletConfig struct {
Droplet Config `yaml:"ingester"`
}
type Handler ¶
type Handler func(*trident.SyncResponse, *RpcInfoVersions)
type LabelerConfig ¶
type PCapConfig ¶
type PCapConfig struct { TCPIPChecksum bool `yaml:"tcpip-checksum"` BlockSizeKB int `yaml:"block-size-kb"` MaxConcurrentFiles int `yaml:"max-concurrent-files"` MaxFileSizeMB int `yaml:"max-file-size-mb"` MaxFilePeriodSecond int `yaml:"max-file-period-second"` MaxDirectorySizeGB int `yaml:"max-directory-size-gb"` DiskFreeSpaceMarginGB int `yaml:"disk-free-space-margin-gb"` FileDirectory string `yaml:"file-directory"` }
type QueueConfig ¶
type RpcConfigSynchronizer ¶
type RpcConfigSynchronizer struct { sync.Mutex PollingSession grpc.GrpcSession RpcInfoVersions // contains filtered or unexported fields }
func (*RpcConfigSynchronizer) Register ¶
func (s *RpcConfigSynchronizer) Register(handler Handler)
func (*RpcConfigSynchronizer) Start ¶
func (s *RpcConfigSynchronizer) Start()
func (*RpcConfigSynchronizer) Stop ¶
func (s *RpcConfigSynchronizer) Stop()
type RpcInfoVersions ¶
Click to show internal directories.
Click to hide internal directories.