Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrieveBearerToken ¶
func RetrieveBearerToken(authCfg configauth.Authentication, extensions map[component.ID]component.Component) (string, error)
Types ¶
type Scraper ¶
type Scraper interface {
ToPrometheusReceiverConfig(host component.Host, fact receiver.Factory) ([]*config.ScrapeConfig, error)
}
func NewScraper ¶
func NewScraper(ctx 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.Authentication `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.