Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregation ¶
type Aggregation struct { Servers []string Cache time.Duration Mode string Database string Collection string Pipeline string Metrics []Metric }
Aggregation defines what aggregation pipeline is executed on what servers
type Config ¶
type Config struct { Bind string MetricsPath string Log zap.Config Global Global Servers []*Server Aggregations []*collector.Aggregation }
Configuration v3.0 format
func (*Config) Build ¶
Build collectors from a configuration v2.0 format and return a collection of all configured collectors
func (*Config) GetBindAddr ¶
Get address where the http server should be bound to
type Global ¶
type Global struct { QueryTimeout time.Duration MaxConnections int32 DefaultCache time.Duration DefaultMode string DefaultDatabase string DefaultCollection string }
Global config
Click to show internal directories.
Click to hide internal directories.