Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsEmitter ¶
type MetricsEmitter interface { EmitGauge(opts ...loggregator.EmitGaugeOption) EmitCounter(name string, opts ...loggregator.EmitCounterOption) }
type MetricsGetter ¶
type ScrapeError ¶
func (*ScrapeError) Error ¶
func (e *ScrapeError) Error() string
type ScrapeOption ¶
type ScrapeOption func(s *Scraper)
func WithMetricsClient ¶
func WithMetricsClient(m metricsClient) ScrapeOption
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func New ¶
func New( t TargetProvider, e MetricsEmitter, sc MetricsGetter, opts ...ScrapeOption, ) *Scraper
type ScraperError ¶
type ScraperError struct {
Errors []*ScrapeError
}
func (*ScraperError) Error ¶
func (e *ScraperError) Error() string
type TargetProvider ¶
type TargetProvider func() []Target
func NewDNSScrapeTargetProvider ¶
func NewDNSScrapeTargetProvider(sourceID, dnsFile string, port int) TargetProvider
Click to show internal directories.
Click to hide internal directories.