Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher(scraper *Scraper, targets []*config.ProxyMetricsTarget) *Fetcher
func (Fetcher) Metric ¶
func (f Fetcher) Metric(target *config.ProxyMetricsTarget) ([]*dto.MetricFamily, error)
type ReaderGzip ¶
type ReaderGzip struct {
// contains filtered or unexported fields
}
func NewReaderGzip ¶
func NewReaderGzip(main io.ReadCloser) (*ReaderGzip, error)
func (ReaderGzip) Close ¶
func (r ReaderGzip) Close() error
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func (Scraper) Scrape ¶
func (s Scraper) Scrape(target *config.ProxyMetricsTarget) (io.ReadCloser, error)
type StatusCollector ¶
type StatusCollector struct {
// contains filtered or unexported fields
}
func NewStatusCollector ¶
func NewStatusCollector(gslocConsul *disco.GslocConsul) *StatusCollector
func (*StatusCollector) Collect ¶
func (s *StatusCollector) Collect(metrics chan<- prometheus.Metric)
func (*StatusCollector) Describe ¶
func (s *StatusCollector) Describe(descs chan<- *prometheus.Desc)
type StatusHandler ¶
type StatusHandler struct {
// contains filtered or unexported fields
}
func NewStatusHandler ¶ added in v0.10.0
func NewStatusHandler(collector *StatusCollector, allowedInspect []*config.CIDR, trustXFF bool) *StatusHandler
func (*StatusHandler) ServeHTTP ¶ added in v0.10.0
func (s *StatusHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.