mongodb

package
v5.4.0-lain-p3+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mongodb is a Metricbeat module that contains MetricSets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvHost

func GetEnvHost() string

GetEnvHost returns the hostname of the Mongodb server to use for testing. It reads the value from the MONGODB_HOST environment variable and returns 127.0.0.1 if it is not set.

func GetEnvPort

func GetEnvPort() string

GetEnvPort returns the port of the Mongodb server to use for testing. It reads the value from the MONGODB_PORT environment variable and returns 27017 if it is not set.

func NewDirectSession

func NewDirectSession(dialInfo *mgo.DialInfo) (*mgo.Session, error)

NewDirectSession estbalishes direct connections with a list of hosts. It uses the supplied dialInfo parameter as a template for establishing more direct connections

func NewModule

func NewModule(base mb.BaseModule) (mb.Module, error)

NewModule creates a new mb.Module instance and validates that at least one host has been specified

func ParseURL

func ParseURL(module mb.Module, host string) (mb.HostData, error)

ParseURL parses valid MongoDB URL strings into an mb.HostData instance

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL