monitoring

package
v0.0.0-...-dfa89ce Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PerformanceCountersToCollect = []string{
	"pc_work_time_total",
	"pc_work_time_avg",
	"pc_work_time",
	"pc_work_time_var",
	"pc_throughput_avg",
	"pc_nproduced",
	"pc_nproduced_avg",
	"pc_nproduced_var",
}

Functions

func GetPerfCtrGauge

func GetPerfCtrGauge(flowgraphName string, blockName string, counterName string) (prometheus.Gauge, error)

Registers a new gauge. If gauge already exists, returns that.

Types

type Exporter

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

func NewExporter

func NewExporter(address string, l *zap.SugaredLogger) (*Exporter, error)

func (*Exporter) Close

func (e *Exporter) Close() error

type Metrics

type Metrics struct {
	FlowgraphCount prometheus.Gauge
}

func NewMetrics

func NewMetrics() *Metrics

Jump to

Keyboard shortcuts

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