metrics

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector(ctx context.Context, p NFTConfReader, opts ...Opt) prometheus.Collector

NewCollector - impl prometheus.Collector

Types

type NFTConfReader

type NFTConfReader interface {
	Fetch(context.Context) (conf.StateOfNFTables, error)
}

NFTConfReader -

type Opt

type Opt interface {
	// contains filtered or unexported methods
}

Opt -

func WithLogger

func WithLogger(l logger.TypeOfLogger) Opt

WithLogger -

func WithMinFrequency

func WithMinFrequency(d time.Duration) Opt

WithMinFrequency -

Jump to

Keyboard shortcuts

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