Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(logger log.Logger, c *Config) (integrations.Integration, error)
New creates a new mongodb_exporter integration.
Types ¶
type Config ¶
type Config struct { // MongoDB connection URI. example:mongodb://user:pass@127.0.0.1:27017/admin?ssl=true" URI config_util.Secret `yaml:"mongodb_uri"` }
Config controls mongodb_exporter
func (*Config) InstanceKey ¶ added in v0.21.0
InstanceKey returns the address:port of the mongodb server being queried.
func (*Config) NewIntegration ¶
func (c *Config) NewIntegration(logger log.Logger) (integrations.Integration, error)
NewIntegration creates a new mongodb_exporter
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config
type Option ¶
type Option func(*output)
Option Exposes logging options
func WithTimestampFromLogrus ¶
func WithTimestampFromLogrus() Option
WithTimestampFromLogrus sets tsFromLogrus logging option
Click to show internal directories.
Click to hide internal directories.