config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServerName   = "main"
	DefaultMongoDBURI   = "mongodb://localhost:27017"
	DefaultMetricsPath  = "/metrics"
	DefaultBindAddr     = ":9412"
	DefaultQueryTimeout = 10 * time.Second
	HealthzPath         = "/healthz"
	DefaultLogEncoder   = "json"
	DefaultLogLevel     = "warn"
)

Config defaults

Variables

View Source
var Counter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "mongodb_query_exporter_query_total",
		Help: "How many MongoDB queries have been processed, partitioned by metric, server and status",
	},
	[]string{"aggregation", "server", "result"},
)

Functions

This section is empty.

Types

type Config

type Config interface {
	GetBindAddr() string
	GetMetricsPath() string
	Build() (*collector.Collector, error)
}

A configuration format to build a Collector from

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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