Documentation ¶
Index ¶
- Variables
- type AgentType
- func (a AgentType) ClusterCollector() bool
- func (a AgentType) ScrapeAnyNodes() bool
- func (a AgentType) ScrapeCluster() bool
- func (a AgentType) ScrapeNodes() string
- func (a AgentType) ScrapeOnlyOwnNode() bool
- func (a *AgentType) Set(value string) error
- func (a AgentType) String() string
- func (a AgentType) Type() string
- type CollectorRunOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var DaemonAndAgentErr = errors.New("cannot set --daemon with --agent")
View Source
var InvalidAgentTypeErr = errors.New("--agent can only be node, cluster, all or legacy")
Functions ¶
This section is empty.
Types ¶
type AgentType ¶
type AgentType string
func NewAgentType ¶
func (AgentType) ClusterCollector ¶
func (AgentType) ScrapeAnyNodes ¶
func (AgentType) ScrapeCluster ¶
func (AgentType) ScrapeNodes ¶
func (AgentType) ScrapeOnlyOwnNode ¶
type CollectorRunOptions ¶
type CollectorRunOptions struct { // supported flags Version bool EnableProfiling bool AgentType AgentType ConfigFile string LogLevel string MaxProcs int // An experimental flag for forcing a garbage collection and releasing memory. // See https://utcc.utoronto.ca/~cks/space/blog/programming/GoNoMemoryFreeing for reference. // Basically Go holds on to more memory than is necessary resulting in larger heap usage. // Enabling this flag causes the collector to call debug.FreeOSMemory after every sink.send() call. // Go 1.13 showed a 30% lower memory usage vs Go 1.12. Enabling this flag was observed to result in a further ~30% // reduction in memory usage but the impact of forcing a GC run so frequently has not been thoroughly tested. ForceGC bool // deprecated flags MetricResolution time.Duration Sources flags.Uris Sinks flags.Uris SinkExportDataTimeout time.Duration EnableDiscovery bool EnableRuntimeConfigs bool DiscoveryConfigFile string InternalStatsPrefix string ScrapeTimeout time.Duration // contains filtered or unexported fields }
func NewCollectorRunOptions ¶
func NewCollectorRunOptions() *CollectorRunOptions
func Parse ¶
func Parse() *CollectorRunOptions
func (*CollectorRunOptions) Convert ¶
func (opts *CollectorRunOptions) Convert() (*configuration.Config, error)
Convert converts options into a configuration instance for backwards compatibility
Click to show internal directories.
Click to hide internal directories.