exporter

package
v0.0.0-...-f4cebfc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Key = `` /* 1674-byte string literal not displayed */

	Cert = `` /* 1455-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewCAdvisorManager

func NewCAdvisorManager(urls []string) *cAdvisorManager

func NewClientTLS_gRPC

func NewClientTLS_gRPC(address string)

func NewClient_gRPC

func NewClient_gRPC(address string) *client_gRPC

Types

type ActionType

type ActionType int
const (
	ACTION_START ActionType = iota
	ACTION_PAUSE
	ACTION_CONTINUE
	ACTION_STOP
)

type CollectorClientRPC

type CollectorClientRPC interface {
	Transit(*pb.MeteringReqResp) (*pb.MeteringReqResp, error)
}

type ExporterManager

type ExporterManager struct {
	MeteringNameURLs    map[string][]string
	MetricsCollectorRPC string
	Dispatchers         map[string]MeterDispatcher

	RootPath string
	// contains filtered or unexported fields
}

func (*ExporterManager) Dispatch

func (em *ExporterManager) Dispatch(ch <-chan bool)

type Job

type Job struct {
	Id *ActionType

	Err         error
	LastUpdated time.Time
	// contains filtered or unexported fields
}

type MeterDispatcher

type MeterDispatcher interface {
	RPC(CollectorClientRPC) MeterDispatcher
	StartMetering() map[string]Job
	ReapMetrics(url string) (*pb.MeteringReqResp, error)
	StopMetering()
}

Jump to

Keyboard shortcuts

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