prometheus_exporter

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Type = "prometheusExporter"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoints []string          `yaml:"endpoints,omitempty" validate:"required"`
	Interval  time.Duration     `yaml:"interval,omitempty" default:"30s"`
	Timeout   time.Duration     `yaml:"timeout,omitempty" default:"5s"`
	ToJson    bool              `yaml:"toJson,omitempty"`
	Labels    map[string]string `yaml:"labels,omitempty"`
}

func (*Config) Validate

func (c *Config) Validate() error

type PromExporter

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

func (*PromExporter) Category

func (e *PromExporter) Category() api.Category

func (*PromExporter) Commit

func (e *PromExporter) Commit(events []api.Event)

func (*PromExporter) Config

func (e *PromExporter) Config() interface{}

func (*PromExporter) Init

func (e *PromExporter) Init(context api.Context) error

func (*PromExporter) ProductLoop

func (e *PromExporter) ProductLoop(productFunc api.ProductFunc)

func (*PromExporter) Start

func (e *PromExporter) Start() error

func (*PromExporter) Stop

func (e *PromExporter) Stop()

func (*PromExporter) String

func (e *PromExporter) String() string

func (*PromExporter) Type

func (e *PromExporter) Type() api.Type

Jump to

Keyboard shortcuts

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