Versions in this module Expand all Collapse all v5 v5.1.0 Sep 15, 2023 v5.0.0 Sep 8, 2023 Changes in this version + type Config struct + Bind string + LogLevel string + Metrics []*Metric + MongoDB MongoDB + func (conf *Config) Build() (*collector.Collector, error) + func (conf *Config) GetBindAddr() string + func (conf *Config) GetMetricsPath() string + type Metric struct + Cache int64 + Collection string + ConstLabels prometheus.Labels + Database string + EmptyValue int64 + Help string + Labels []string + Mode string + Name string + OverrideEmpty bool + Pipeline string + Type string + Value string + type MongoDB struct + ConnectionTimeout time.Duration + DefaultCollection string + DefaultDatabase string + DefaultInterval int64 + MaxConnections int32 + URI string