prometheus_output

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Listen     string        `mapstructure:"listen,omitempty"`
	Path       string        `mapstructure:"path,omitempty"`
	Expiration time.Duration `mapstructure:"expiration,omitempty"`
	Debug      bool          `mapstructure:"debug,omitempty"`
}

type PrometheusOutput

type PrometheusOutput struct {
	Cfg *Config

	sync.Mutex
	// contains filtered or unexported fields
}

func (*PrometheusOutput) Close

func (p *PrometheusOutput) Close() error

func (*PrometheusOutput) Collect

func (p *PrometheusOutput) Collect(ch chan<- prometheus.Metric)

func (*PrometheusOutput) Describe

func (p *PrometheusOutput) Describe(ch chan<- *prometheus.Desc)

/

func (*PrometheusOutput) Init

func (p *PrometheusOutput) Init(ctx context.Context, cfg map[string]interface{}, logger *log.Logger) error

func (*PrometheusOutput) Metrics

func (p *PrometheusOutput) Metrics() []prometheus.Collector

func (*PrometheusOutput) String

func (p *PrometheusOutput) String() string

func (*PrometheusOutput) Write

func (p *PrometheusOutput) Write(ctx context.Context, rsp proto.Message, meta outputs.Meta)

Jump to

Keyboard shortcuts

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