cpuscraper

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() scraper.Factory

Types

type CPUScraper

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

func NewScraper

func NewScraper(
	_ context.Context,
	settings scraper.Settings,
	cfg *Config,
) *CPUScraper

func (*CPUScraper) Scrape

func (s *CPUScraper) Scrape(ctx context.Context) (pmetric.Metrics, error)

func (*CPUScraper) Start

func (s *CPUScraper) Start(_ context.Context, _ component.Host) error

type Config

type Config struct {
	MetricsBuilderConfig           metadata.MetricsBuilderConfig `mapstructure:",squash"`
	scraperhelper.ControllerConfig `mapstructure:",squash"`
}

func NewConfig

func NewConfig(cfg *config.Config) *Config

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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