# README
General Information
A scraper defines how to connect and scrape telemetry data from an external source.
Status | |
---|---|
Stability | beta: metrics, logs |
Issues |
# Functions
AddFactoryWithConfig configures the scraper.Factory and associated config that will be used to create a new scraper.
AddScraper configures the scraper.Metrics to be called with the specified options, and at the specified collection interval.
NewDefaultControllerConfig returns default scraper controller settings with a collection interval of one minute.
NewLogsController creates a receiver.Logs with the configured options, that can control multiple scraper.Logs.
NewMetricsController creates a receiver.Metrics with the configured options, that can control multiple scraper.Metrics.
WithTickerChannel allows you to override the scraper controller's ticker channel to specify when scrape is called.
# Structs
ControllerConfig defines common settings for a scraper controller configuration.
# Interfaces
ControllerOption apply changes to internal options.