servicers

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsControllerServer

type MetricsControllerServer struct {
	// contains filtered or unexported fields
}

MetricsControllerServer implements a handler to the gRPC server run by the Metrics Controller. It can register instances of the Exporter interface for writing to storage

func NewMetricsControllerServer

func NewMetricsControllerServer() *MetricsControllerServer

func (*MetricsControllerServer) Collect

func (*MetricsControllerServer) ConsumeCloudMetrics

func (srv *MetricsControllerServer) ConsumeCloudMetrics(inputChan chan *prom_proto.MetricFamily, hostName string)

ConsumeCloudMetrics pulls metrics off the given input channel and sends them to all exporters after some preprocessing. Returns only when inputChan closed, which should never happen.

func (*MetricsControllerServer) Push

func (*MetricsControllerServer) RegisterExporter

func (srv *MetricsControllerServer) RegisterExporter(e exporters.Exporter) []exporters.Exporter

Jump to

Keyboard shortcuts

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