prometheus

package
v0.0.0-...-00adc59 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorDefinition

type CollectorDefinition struct {
	Name      string
	Collector prometheus.Collector
}

type Config

type Config struct {
	MetricsPath   string
	ListenAddress string
	MaxRequests   int
}

type Options

type Options struct {
	TitleString          string
	CollectorDefinitions []CollectorDefinition
}

type PrometheusExporterModule

type PrometheusExporterModule struct {
	module.Base
	// contains filtered or unexported fields
}

func NewPrometheusExporterModule

func NewPrometheusExporterModule(name string, options *Options) *PrometheusExporterModule

func (*PrometheusExporterModule) Cleanup

func (p *PrometheusExporterModule) Cleanup(ctx context.Context)

func (*PrometheusExporterModule) Configure

func (p *PrometheusExporterModule) Configure() error

func (*PrometheusExporterModule) Init

func (*PrometheusExporterModule) Main

Jump to

Keyboard shortcuts

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