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 *slog.Logger, metrics Metrics, conc int, debugSNMP bool) *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 *slog.Logger, metrics Metrics) (ScrapeResults, error)
Click to show internal directories.
Click to hide internal directories.