Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TypeStr the value of "type" key in configuration.
TypeStr = "disk"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Metrics allows to customize scraped metrics representation. Metrics metadata.MetricsSettings `mapstructure:"metrics"` internal.ScraperConfig // Include specifies a filter on the devices that should be included from the generated metrics. // Exclude specifies a filter on the devices that should be excluded from the generated metrics. // If neither `include` or `exclude` are set, metrics will be generated for all devices. Include MatchConfig `mapstructure:"include"` Exclude MatchConfig `mapstructure:"exclude"` }
Config relating to Disk Metric Scraper.
type Factory ¶
type Factory struct { }
Factory is the Factory for scraper.
func (*Factory) CreateDefaultConfig ¶
CreateDefaultConfig creates the default configuration for the Scraper.
func (*Factory) CreateMetricsScraper ¶
func (f *Factory) CreateMetricsScraper( ctx context.Context, settings component.ReceiverCreateSettings, config internal.Config, ) (scraperhelper.Scraper, error)
CreateMetricsScraper creates a scraper based on provided config.
type MatchConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.