collector

package
v0.17.7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	Poller  poller.Poller
	Metrics *Metrics
	Logger  *slog.Logger
}

func (*Collector) Run

func (c *Collector) Run(ctx context.Context) error

type Metrics added in v0.16.0

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

func NewMetrics added in v0.16.0

func NewMetrics() *Metrics

func (Metrics) Collect added in v0.16.0

func (m Metrics) Collect(ch chan<- prometheus.Metric)

func (Metrics) Describe added in v0.16.0

func (m Metrics) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳