Only query the perflib objects we need

This commit is contained in:
Calle Pettersson
2020-02-09 21:09:26 +01:00
parent 0865061210
commit 21a02c4fbe
33 changed files with 97 additions and 57 deletions

View File

@@ -54,7 +54,7 @@ type textFileCollector struct {
}
func init() {
Factories["textfile"] = NewTextFileCollector
registerCollector("textfile", NewTextFileCollector)
}
// NewTextFileCollector returns a new Collector exposing metrics read from files