Fix all open go lint and vet issues

This commit is contained in:
Tobias Schmidt 2017-02-28 12:44:53 -04:00
commit c703435790
37 changed files with 136 additions and 129 deletions

View file

@ -44,8 +44,8 @@ func init() {
Factories["textfile"] = NewTextFileCollector
}
// Takes a registers a
// SetMetricFamilyInjectionHook.
// NewTextFileCollector returns a new Collector exposing metrics read from files
// in the given textfile directory.
func NewTextFileCollector() (Collector, error) {
c := &textFileCollector{
path: *textFileDirectory,
@ -65,7 +65,7 @@ func NewTextFileCollector() (Collector, error) {
return c, nil
}
// textFile collector works via SetMetricFamilyInjectionHook in parseTextFiles.
// Update implements the Collector interface.
func (c *textFileCollector) Update(ch chan<- prometheus.Metric) (err error) {
return nil
}