cwexporter

package
v0.0.0-...-8c057c7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidConfig = errors.New("invalid configuration for cw exporter")
	ErrMissingConfig = errors.New("missing configuration for cw exporter")
)

Functions

This section is empty.

Types

type Exporter

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

func NewExporter

func NewExporter(options ...ExporterOption) *Exporter

func (*Exporter) Load

func (e *Exporter) Load() error

func (*Exporter) UpdateCache

func (e *Exporter) UpdateCache()

type ExporterOption

type ExporterOption func(*Exporter)

func WithLogger

func WithLogger(l *zerolog.Logger) ExporterOption

func WithViper

func WithViper(v *viper.Viper) ExporterOption

type PrometheusCollector

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

func NewPrometheusCollector

func NewPrometheusCollector() *PrometheusCollector

func (*PrometheusCollector) Collect

func (p *PrometheusCollector) Collect(metrics chan<- prometheus.Metric)

func (*PrometheusCollector) Describe

func (p *PrometheusCollector) Describe(descs chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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