Now also migrate gmond and runit.

This commit is contained in:
Bjoern Rabenstein 2014-06-26 21:16:21 +02:00
commit 28468bebae
4 changed files with 71 additions and 56 deletions

View file

@ -11,6 +11,12 @@ type Collector interface {
Update() (n int, err error)
}
// TODO: Instead of periodically call Update, a Collector could be implemented
// as a real prometheus.Collector that only gathers metrics when
// scraped. (However, for metric gathering that takes very long, it might
// actually be better to do them proactively before scraping to minimize scrape
// time.)
type Config struct {
Attributes map[string]string `json:"attributes"`
}