prometheus

package
v0.0.0-...-b3ece4c Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	Addr string
}

Connector provides export features to Prometheus

func (*Connector) Initialize

func (connector *Connector) Initialize()

Initialize Prometheus Exporter, listen on addr with path /metrics and /flowdata

type FacadeCollector

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

FacadeCollector implements the Collector interface.

func NewFacadeCollector

func NewFacadeCollector(counter counters.Counter, labels []string) FacadeCollector

NewFacadeCollector returns a new instance of FacadeCollector

func (FacadeCollector) Collect

func (collector FacadeCollector) Collect(ch chan<- prometheus.Metric)

Collect returns the counter values and labels from the internal counting system

func (FacadeCollector) Describe

func (collector FacadeCollector) Describe(ch chan<- *prometheus.Desc)

Describe returns the prometheus metric description

Jump to

Keyboard shortcuts

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