Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Bind string MetricsPath string Log zap.Config Global Global Servers []*Server Metrics []*Metric }
Configuration v2.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 Metric ¶
type Metric struct { Servers []string Cache int64 Mode string Database string Collection string Pipeline string Name string Type string Help string Value string OverrideEmpty bool EmptyValue int64 ConstLabels prometheus.Labels Labels []string }
Metric defines an exported metric from a MongoDB aggregation pipeline
Click to show internal directories.
Click to hide internal directories.