monitoring

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricExporter

type MetricExporter struct {
	Metrics *metrics.Prometheus
	// contains filtered or unexported fields
}

MetricExporter holds the web endpoint for prometheus this implements the interface MonitorEndpoint

func GetInstance

func GetInstance() *MetricExporter

GetInstance initializes the instance exactly once and returns it

func (*MetricExporter) Register

func (m *MetricExporter) Register(collector prometheus.Collector)

Register registers a prometheus collector

type MonitorEndpoint

type MonitorEndpoint interface {
	Register(collector prometheus.Collector)
}

MonitorEndpoint defines the monitoring handler

Jump to

Keyboard shortcuts

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