collector

package
v0.26.10 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 16 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 {
	// 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

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

Collect implements Prometheus.Collector.

func (Collector) Describe

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

Describe implements Prometheus.Collector.

type MetricNode

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

type Metrics

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

type NamedModule

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

func NewNamedModule

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