metrics

package
v0.8.24 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace = "image_scanner"
	Subsystem = "container_image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageMetricsCollector

type ImageMetricsCollector struct {
	client.Client
	config.Config
	// contains filtered or unexported fields
}

func (ImageMetricsCollector) Collect

func (c ImageMetricsCollector) Collect(metrics chan<- prometheus.Metric)

func (ImageMetricsCollector) Describe

func (c ImageMetricsCollector) Describe(descs chan<- *prometheus.Desc)

func (ImageMetricsCollector) NeedLeaderElection

func (c ImageMetricsCollector) NeedLeaderElection() bool

func (*ImageMetricsCollector) SetupWithManager

func (c *ImageMetricsCollector) SetupWithManager(mgr Manager) error

func (ImageMetricsCollector) Start

type Manager added in v0.5.8

type Manager interface {
	Add(manager.Runnable) error
}

Manager is an interface defined for functions actually used in manager.Manager to make it easier to mock.

Jump to

Keyboard shortcuts

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