mongodb

package
v0.0.0-...-be347a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 11 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 AssetMongodb

func AssetMongodb() string

AssetMongodb returns asset data. This is the base64 encoded gzipped contents of ../metricbeat/module/mongodb.

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

type MetricSet

type MetricSet struct {
	mb.BaseMetricSet
	DialInfo *mgo.DialInfo
}

MetricSet type defines all fields of the MetricSet

func NewMetricSet

func NewMetricSet(base mb.BaseMetricSet) (*MetricSet, error)

NewMetricSet creates a new instance of the MetricSet

type ModuleConfig

type ModuleConfig struct {
	TLS *tlscommon.Config `config:"ssl"`
}

ModuleConfig contains the common configuration for this module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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