metrics

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootImageCollector added in v0.1.2

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

func MustBootImageMetrics added in v0.1.2

func MustBootImageMetrics(logger *slog.Logger, rootPath string) *BootImageCollector

func (*BootImageCollector) GetGatherer added in v0.1.2

func (c *BootImageCollector) GetGatherer() prometheus.Gatherer

func (*BootImageCollector) IncrementCacheMiss added in v0.1.2

func (c *BootImageCollector) IncrementCacheMiss()

func (*BootImageCollector) IncrementDownloads added in v0.1.2

func (c *BootImageCollector) IncrementDownloads()

type DownloadCollector added in v0.1.2

type DownloadCollector interface {
	IncrementCacheMiss()
	IncrementDownloads()

	GetGatherer() prometheus.Gatherer
}

type ImageCollector added in v0.1.2

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

func MustImageMetrics added in v0.1.2

func MustImageMetrics(logger *slog.Logger, rootPath string) *ImageCollector

func (*ImageCollector) AddSyncDownloadImageBytes added in v0.1.2

func (c *ImageCollector) AddSyncDownloadImageBytes(b int64)

func (*ImageCollector) GetGatherer added in v0.1.2

func (c *ImageCollector) GetGatherer() prometheus.Gatherer

func (*ImageCollector) IncrementCacheMiss added in v0.1.2

func (c *ImageCollector) IncrementCacheMiss()

func (*ImageCollector) IncrementDownloads added in v0.1.2

func (c *ImageCollector) IncrementDownloads()

func (*ImageCollector) IncrementSyncDownloadImageCount added in v0.1.2

func (c *ImageCollector) IncrementSyncDownloadImageCount()

func (*ImageCollector) SetMetalAPIImageCount added in v0.1.2

func (c *ImageCollector) SetMetalAPIImageCount(b int)

func (*ImageCollector) SetUnsyncedImageCount added in v0.1.2

func (c *ImageCollector) SetUnsyncedImageCount(b int)

type KernelCollector added in v0.1.2

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

func MustKernelMetrics added in v0.1.2

func MustKernelMetrics(logger *slog.Logger, rootPath string) *KernelCollector

func (*KernelCollector) GetGatherer added in v0.1.2

func (c *KernelCollector) GetGatherer() prometheus.Gatherer

func (*KernelCollector) IncrementCacheMiss added in v0.1.2

func (c *KernelCollector) IncrementCacheMiss()

func (*KernelCollector) IncrementDownloads added in v0.1.2

func (c *KernelCollector) IncrementDownloads()

Jump to

Keyboard shortcuts

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