plugins

package
v0.0.0-...-307bde9 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusCollector

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

func (PrometheusCollector) Reset

func (c PrometheusCollector) Reset()

Reset is a noop operation in this collector.

func (PrometheusCollector) Update

func (c PrometheusCollector) Update(r metricCollector.MetricResult)

type PrometheusCollectorClient

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

func InitializePrometheusCollector

func InitializePrometheusCollector(config PrometheusCollectorConfig) *PrometheusCollectorClient

func (*PrometheusCollectorClient) NewPrometheusCollector

func (client *PrometheusCollectorClient) NewPrometheusCollector(subsystem string) metricCollector.MetricCollector

NewPrometheusCollector creates a collector for a specific circuit. The prefix given to this circuit will be {config.Prefix}_{subsystem}_{metric}. Circuits with "/", ":", and "." in their names will have them replaced with "_".

type PrometheusCollectorConfig

type PrometheusCollectorConfig struct {
	// Namespace is the prefix that will be prepended to all metrics sent from this collector.
	Namespace string
}

PrometheusCollectorConfig provides configuration for the prometheus client

Jump to

Keyboard shortcuts

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