collectors

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetrics

func NewMetrics() *metrics

NewMetrics Initializes the metrics.

Types

type Exporter

type Exporter struct {
	Settings *Settings
	Logger   *slog.Logger
	// contains filtered or unexported fields
}

func NewExporter

func NewExporter(settings *Settings, logger *slog.Logger) (*Exporter, error)

NewExporter Initialize the exporter.

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect metrics configured and returns them as prometheus metrics Implements prometheus.Collector.

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe Metrics function.

type Settings

type Settings struct {
	LogLevel    string
	LogFormat   string
	MetricsPath string
	ListenPort  string
	Address     string
}

Jump to

Keyboard shortcuts

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