dockerstats

package
v0.0.0-...-77fd705 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package dockerstats implements an OpenTelemetry receiver that periodically scrapes stats for docker containers from the docker API and expose them as metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() component.ReceiverFactory

NewFactory creates and returns a factory for the docker stats receiver.

Types

type Config

type Config struct {
	config.ReceiverSettings `mapstructure:",squash"`
	// ScrapeInterval controls how often docker stats are scraped from docker API.
	ScrapeInterval time.Duration `mapstructure:"scrape_interval"`
}

Config defines the configuration for dockerstats receiver.

type Receiver

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

Receiver implements component.MetricReceiver. Manages the lifecycle of the scraper that scrapes docker stats from the API.

func (*Receiver) Shutdown

func (r *Receiver) Shutdown(ctx context.Context) error

Shutdown tells this receiver to stop.

func (*Receiver) Start

func (r *Receiver) Start(ctx context.Context, host component.Host) error

Start tells this receiver to start.

Jump to

Keyboard shortcuts

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