exporterkit

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
dns_exporter command
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
⌂ 换网址