Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JobInfo ¶
type JobInfo struct { // Config is the origin scrape config in config file Config *config.ScrapeConfig // Cli is the http.Cli for scraping // all scraping request will be proxy to env SCRAPE_PROXY if it is not empty Cli *http.Client // contains filtered or unexported fields }
JobInfo contains http client for scraping target, and the origin scrape config
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager includes all jobs
func (*Manager) ApplyConfig ¶
func (s *Manager) ApplyConfig(cfg *prom.ConfigInfo) error
ApplyConfig update Manager from config
Click to show internal directories.
Click to hide internal directories.