mpmongodb

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Do the plugin

Types

type MongoDBPlugin

type MongoDBPlugin struct {
	URL       string
	Username  string
	Password  string
	Source    string
	KeyPrefix string
	Verbose   bool
	RawURL    string // RawURL is preferred over URL
}

MongoDBPlugin mackerel plugin for mongo

func (MongoDBPlugin) FetchMetrics

func (m MongoDBPlugin) FetchMetrics() (map[string]interface{}, error)

FetchMetrics interface for mackerelplugin

func (MongoDBPlugin) GraphDefinition

func (m MongoDBPlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition interface for mackerelplugin

func (MongoDBPlugin) LabelPrefix

func (m MongoDBPlugin) LabelPrefix() string

func (MongoDBPlugin) MetricKeyPrefix

func (m MongoDBPlugin) MetricKeyPrefix() string

MetricKeyPrefix returns the metrics key prefix

Jump to

Keyboard shortcuts

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