Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrieveBearerToken ¶
Types ¶
type Scraper ¶
type Scraper interface {
ToPrometheusReceiverConfig(host component.Host, fact receiver.Factory) ([]*config.ScrapeConfig, error)
}
func NewScraper ¶
func NewScraper(_ context.Context, scraperType ScraperType, endpoint string, configs []ScraperConfig, scrapeInterval time.Duration, labels model.LabelSet, ) Scraper
type ScraperConfig ¶
type ScraperConfig struct {
Address string `mapstructure:"address"`
Auth configauth.Config `mapstructure:"auth"`
}
type ScraperType ¶
type ScraperType string
const ( ScraperTypeArray ScraperType = "array" ScraperTypeClients ScraperType = "clients" ScraperTypeUsage ScraperType = "usage" )
Click to show internal directories.
Click to hide internal directories.