exporterkit

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 3

README

exporterkit

Documentation

Index

Constants

View Source
const (
	// DefaultAddress is the address the Exporter will run on if no address is configured.
	DefaultAddress = "http://0.0.0.0:8000"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Address        string
	Collectors     []prometheus.Collector
	ExtraEndpoints []server.Endpoint
	Logger         micrologger.Logger
}

Config if the configuration to create an Exporter.

type Exporter

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

Exporter runs a slice of Prometheus Collectors.

func New

func New(config Config) (*Exporter, error)

New creates a new Exporter, given a Config.

func (*Exporter) Run

func (e *Exporter) Run()

Run starts the Exporter.

Directories

Path Synopsis
examples
Package histogram provides primitives for working with histograms, particularly towards building Prometheus exporters.
Package histogram provides primitives for working with histograms, particularly towards building Prometheus exporters.
Package histogramvec provides primitives for working with a vector of histograms, particularly towards building Prometheus exporters.
Package histogramvec provides primitives for working with a vector of histograms, particularly towards building Prometheus exporters.

Jump to

Keyboard shortcuts

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