docker

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "docker"

Variables

This section is empty.

Functions

func Register

func Register(dockerClient client.APIClient)

Register registers the Kafka collector with the metrics system. This function should be called explicitly by the application.

Types

type Collector

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

func NewCollector

func NewCollector(logger *slog.Logger, name string, dockerClient client.APIClient) *Collector

func (*Collector) Configure

func (c *Collector) Configure(settings map[string]any) error

func (*Collector) Name

func (c *Collector) Name() string

func (*Collector) Results

func (c *Collector) Results() []metrics.Results

func (*Collector) Run

func (c *Collector) Run(ctx context.Context) error

func (*Collector) Type

func (c *Collector) Type() string

type Config

type Config struct {
	// Containers is a list of containers to monitor.
	Containers config.StringList `yaml:"containers"`
}

Jump to

Keyboard shortcuts

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