influxdb/gather/scraper.go

13 lines
252 B
Go
Raw Normal View History

2018-09-07 15:45:28 +00:00
package gather
import (
"context"
2019-01-10 17:39:37 +00:00
"github.com/influxdata/influxdb"
2018-09-07 15:45:28 +00:00
)
// Scraper gathers metrics from a scraper target.
type Scraper interface {
2019-01-10 17:39:37 +00:00
Gather(ctx context.Context, target influxdb.ScraperTarget) (collected MetricsCollection, err error)
2018-09-07 15:45:28 +00:00
}