Back to godoc.org

Package memoryscraper

v0.7.0
Latest Go to latest

The latest major version is .

Published: Jul 29, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Index

Constants

const (
	// The value of "type" key in configuration.
	TypeStr = "memory"
)

type Config

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

Config relating to Memory 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,
) (internal.Scraper, error)

CreateMetricsScraper creates a scraper based on provided config.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier