Now also migrate gmond and runit.
This commit is contained in:
parent
0563ecd29d
commit
28468bebae
4 changed files with 71 additions and 56 deletions
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue