Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
type Poller struct { // URL that the poller should scrape. URL *url.URL // Interval is the amount of time that should pass between scrapes. Interval time.Duration // AcceptHeader is used to negotiate the exposition format from the // Prometheus endpoint. AcceptHeader string // Inbox is the channel to use to observe scraped measurements. Inbox chan *ag.Measurement // Debug is used to turn on extended logging, useful for debugging // purposes. Debug bool }
Poller defined parameters for scraping a Prometheus endpoint, over HTTP.
Click to show internal directories.
Click to hide internal directories.