collector

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector added in v0.23.0

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

func New

func New(ctx context.Context, target, authName, snmpContext string, auth *config.Auth, modules []*NamedModule, logger log.Logger, metrics Metrics, conc int, debugSNMP bool) *Collector

func (Collector) Collect added in v0.23.0

func (c Collector) Collect(ch chan<- prometheus.Metric)

Collect implements Prometheus.Collector.

func (Collector) Describe added in v0.23.0

func (c Collector) Describe(ch chan<- *prometheus.Desc)

Describe implements Prometheus.Collector.

type MetricNode

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

type Metrics added in v0.24.0

type Metrics struct {
	SNMPCollectionDuration *prometheus.HistogramVec
	SNMPUnexpectedPduType  prometheus.Counter
	SNMPDuration           prometheus.Histogram
	SNMPPackets            prometheus.Counter
	SNMPRetries            prometheus.Counter
	SNMPInflight           prometheus.Gauge
}

type NamedModule added in v0.24.0

type NamedModule struct {
	*config.Module
	// contains filtered or unexported fields
}

func NewNamedModule added in v0.24.0

func NewNamedModule(name string, module *config.Module) *NamedModule

type ScrapeResults

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

func ScrapeTarget

func ScrapeTarget(snmp scraper.SNMPScraper, target string, auth *config.Auth, module *config.Module, logger log.Logger, metrics Metrics) (ScrapeResults, error)

Jump to

Keyboard shortcuts

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