Documentation

Index

Constants

View Source
const (
	// The value of "type" key in configuration.
	TypeStr = "cpu"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	internal.ConfigSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct
}

    Config relating to CPU Metric Scraper.

    type Factory

    type Factory struct {
    }

      Factory is the Factory for scraper.

      func (*Factory) CreateDefaultConfig

      func (f *Factory) CreateDefaultConfig() internal.Config

        CreateDefaultConfig creates the default configuration for the Scraper.

        func (*Factory) CreateMetricsScraper

        func (f *Factory) CreateMetricsScraper(
        	ctx context.Context,
        	_ *zap.Logger,
        	config internal.Config,
        ) (scraperhelper.MetricsScraper, error)

          CreateMetricsScraper creates a scraper based on provided config.

          GOOS=linux, GOARCH=amd64